-fix compilation issues
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-08-01 00:31:21 +00:00
parent 717fbd2f4f
commit a90f357942
+3 -2
View File
@@ -18,7 +18,7 @@ static int colors[] =
ARGB(255, 255, 255, 255) ARGB(255, 255, 255, 255)
}; };
GuiPhaseBar::GuiPhaseBar() : phase(GameObserver::GetInstance()->phaseRing->getCurrentPhase()), angle(0.0f) GuiPhaseBar::GuiPhaseBar(GameObserver* game):GuiLayer(0,game), phase(GameObserver::GetInstance()->phaseRing->getCurrentPhase()), angle(0.0f)
{ {
JTexture* texture = GameApp::CommonRes->GetTexture("graphics/phasebar.png"); JTexture* texture = GameApp::CommonRes->GetTexture("graphics/phasebar.png");
if (texture) if (texture)
@@ -87,7 +87,8 @@ void GuiPhaseBar::Render()
} }
} }
int GuiPhaseBar::receiveEventMinus(WEvent *e)
int GuiPhaseBar::receiveEvent(WEvent *e)
{ {
WEventPhaseChange *event = dynamic_cast<WEventPhaseChange*>(e); WEventPhaseChange *event = dynamic_cast<WEventPhaseChange*>(e);
if (event) if (event)