This commit is contained in:
parent
78a39699f2
commit
0e8f3d79c4
@ -623,7 +623,15 @@ void CGameScene::think_playing(int _frames)
|
||||
#endif
|
||||
else if (s_restartLevel)
|
||||
{
|
||||
if(m_player->getLivesLeft()>=0)
|
||||
if(getLevelNumber()==5)
|
||||
{
|
||||
// Bonus level.. go back to map after death
|
||||
GameState::setNextScene(&MapScene);
|
||||
s_readyToExit=true;
|
||||
s_levelFinished=false;
|
||||
CFader::setFadingOut();
|
||||
}
|
||||
else if(m_player->getLivesLeft()>=0)
|
||||
{
|
||||
respawnLevel();
|
||||
}
|
||||
|
@ -130,9 +130,12 @@ void CPlayerModeDead::think()
|
||||
{
|
||||
if((m_deadTime>DEATH_DELAY&&m_player->getPadInputDown()&(PI_JUMP|PI_FIRE))||
|
||||
m_deadTime>DEATH_TIMEOUT)
|
||||
{
|
||||
if(GameScene.getLevelNumber()!=5)
|
||||
{
|
||||
// Take a life off..
|
||||
CGameSlotManager::getSlotData()->m_lives--;
|
||||
}
|
||||
|
||||
CGameScene::restartlevel();
|
||||
m_killed=true;
|
||||
|
Loading…
Reference in New Issue
Block a user