This commit is contained in:
parent
a13f0d8e4f
commit
658c4d7637
@ -41,7 +41,8 @@
|
||||
class CDemoGameScene : public CGameScene
|
||||
{
|
||||
public:
|
||||
void createPlayer();
|
||||
virtual void createPlayer();
|
||||
virtual int canPause() {return false;}
|
||||
};
|
||||
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -28,6 +28,7 @@ virtual ~CGameScene() {;}
|
||||
|
||||
void init();
|
||||
virtual void createPlayer();
|
||||
virtual int canPause();
|
||||
void shutdown();
|
||||
void render();
|
||||
void think(int _frames);
|
||||
|
Loading…
Reference in New Issue
Block a user