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

View File

@@ -20,7 +20,8 @@ GuiCombat::GuiCombat(GameObserver* go) : GuiLayer(), go(go), active(false), ok(S
GameApp::CommonRes->CreateQuad("OK", "Ok.png", 0, 0, 56, 45);
}
ok_quad = GameApp::CommonRes->GetQuad("OK");
ok_quad->SetHotSpot(28, 22);
if(ok_quad)
ok_quad->SetHotSpot(28, 22);
}
GuiCombat::~GuiCombat()
@@ -132,7 +133,9 @@ void GuiCombat::Render()
(*it)->Render();
for (vector<TransientCardView*>::iterator it = blkViews.begin(); it != blkViews.end(); ++it)
(*it)->Render();
ok.Render(ok_quad);
if(ok_quad)
ok.Render(ok_quad);
renderer->DrawLine(0, SCREEN_HEIGHT / 2 + 10, SCREEN_WIDTH, SCREEN_HEIGHT / 2 + 10, ARGB(255, 255, 64, 0));
}