diff --git a/source/game/game.cpp b/source/game/game.cpp index 4d6250113..9f424e5ae 100644 --- a/source/game/game.cpp +++ b/source/game/game.cpp @@ -93,9 +93,9 @@ char *Str="Sponge\nBob\nSquare\nPants"; } /*****************************************************************************/ -void CGameScene::think() +void CGameScene::think(int _frames) { - for(int i=0;ithink(); + s_currentScene->think(getFramesSinceLast()); } diff --git a/source/system/gstate.h b/source/system/gstate.h index 1deb5abc5..b51af8b5a 100644 --- a/source/system/gstate.h +++ b/source/system/gstate.h @@ -30,7 +30,7 @@ public: virtual void init()=0; virtual void shutdown()=0; virtual void render()=0; - virtual void think()=0; + virtual void think(int _frames)=0; virtual char *getSceneName()=0; protected: diff --git a/source/system/main.cpp b/source/system/main.cpp index 9ca8f64ff..99ae9d9ca 100644 --- a/source/system/main.cpp +++ b/source/system/main.cpp @@ -89,13 +89,17 @@ void MainLoop() { while (1) { + int frames; + + frames=GameState::getFramesSinceLast(); + GameState::think(); GameState::render(); - CSoundMediator::think(GameState::getTimeSinceLast()); + CSoundMediator::think(frames); #ifdef __USER_paul__ - s_paulScene.think(); + s_paulScene.think(frames); s_paulScene.render(); #endif @@ -120,8 +124,7 @@ void MainLoop() if (PadGetDown(0) & PAD_START) SaveScreen(VidGetScreen()->Draw.clip); #endif - // PKG - Moved vram viewer to SELECT on pad 2 for art dev machines - if (PadGetDown(0) & PAD_SELECT) VRamViewer(); + if (PadGetDown(0) & PAD_SELECT) VRamViewer(); #endif } }