Jeck - Quick patch to GuiCombat so it continues without the missing file. Did someone forget to commit OK.png?

This commit is contained in:
wagic.jeck
2009-08-29 08:39:46 +00:00
parent b13593c958
commit 79fe55c71c
+3
View File
@@ -20,6 +20,7 @@ GuiCombat::GuiCombat(GameObserver* go) : GuiLayer(), go(go), active(false), ok(S
GameApp::CommonRes->CreateQuad("OK", "Ok.png", 0, 0, 56, 45); GameApp::CommonRes->CreateQuad("OK", "Ok.png", 0, 0, 56, 45);
} }
ok_quad = GameApp::CommonRes->GetQuad("OK"); ok_quad = GameApp::CommonRes->GetQuad("OK");
if(ok_quad)
ok_quad->SetHotSpot(28, 22); ok_quad->SetHotSpot(28, 22);
} }
@@ -132,6 +133,8 @@ void GuiCombat::Render()
(*it)->Render(); (*it)->Render();
for (vector<TransientCardView*>::iterator it = blkViews.begin(); it != blkViews.end(); ++it) for (vector<TransientCardView*>::iterator it = blkViews.begin(); it != blkViews.end(); ++it)
(*it)->Render(); (*it)->Render();
if(ok_quad)
ok.Render(ok_quad); ok.Render(ok_quad);
renderer->DrawLine(0, SCREEN_HEIGHT / 2 + 10, SCREEN_WIDTH, SCREEN_HEIGHT / 2 + 10, ARGB(255, 255, 64, 0)); renderer->DrawLine(0, SCREEN_HEIGHT / 2 + 10, SCREEN_WIDTH, SCREEN_HEIGHT / 2 + 10, ARGB(255, 255, 64, 0));