This commit is contained in:
parent
a13f0d8e4f
commit
658c4d7637
3 changed files with 11 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue