This commit is contained in:
Paul 2001-07-31 21:01:04 +00:00
parent 78a39699f2
commit 0e8f3d79c4
2 changed files with 14 additions and 3 deletions

View File

@ -623,7 +623,15 @@ void CGameScene::think_playing(int _frames)
#endif #endif
else if (s_restartLevel) 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(); respawnLevel();
} }

View File

@ -131,8 +131,11 @@ void CPlayerModeDead::think()
if((m_deadTime>DEATH_DELAY&&m_player->getPadInputDown()&(PI_JUMP|PI_FIRE))|| if((m_deadTime>DEATH_DELAY&&m_player->getPadInputDown()&(PI_JUMP|PI_FIRE))||
m_deadTime>DEATH_TIMEOUT) m_deadTime>DEATH_TIMEOUT)
{ {
// Take a life off.. if(GameScene.getLevelNumber()!=5)
CGameSlotManager::getSlotData()->m_lives--; {
// Take a life off..
CGameSlotManager::getSlotData()->m_lives--;
}
CGameScene::restartlevel(); CGameScene::restartlevel();
m_killed=true; m_killed=true;