This commit is contained in:
Paul 2001-02-12 17:24:58 +00:00
parent a13f0d8e4f
commit 658c4d7637
3 changed files with 11 additions and 2 deletions

View File

@ -41,7 +41,8 @@
class CDemoGameScene : public CGameScene
{
public:
void createPlayer();
virtual void createPlayer();
virtual int canPause() {return false;}
};

View File

@ -123,6 +123,12 @@ void CGameScene::createPlayer()
m_player=new ("player") CPlayer();
}
// This is also to be overloaded for demomode.. to stop the pause menu appearing
int CGameScene::canPause()
{
return true;
}
/*****************************************************************************/
@ -159,7 +165,8 @@ void CGameScene::think(int _frames)
// }
//#endif
if(!m_pauseMenu->isActive()&&PadGetDown(0)&PAD_START)
if(!m_pauseMenu->isActive()&&PadGetDown(0)&PAD_START&&canPause())
{
m_pauseMenu->select();
}

View File

@ -28,6 +28,7 @@ virtual ~CGameScene() {;}
void init();
virtual void createPlayer();
virtual int canPause();
void shutdown();
void render();
void think(int _frames);