This commit is contained in:
Paul 2001-07-18 15:05:57 +00:00
parent 15ab35a0ee
commit 9dda98ada6
2 changed files with 7 additions and 4 deletions

View File

@ -2247,10 +2247,6 @@ void CPlayer::dieYouPorousFreak(DEATH_TYPE _deathType)
m_deathType=_deathType;
CSoundMediator::playSfx(CSoundMediator::SFX_SPONGEBOB_DEFEATED_JINGLE);
setMode(PLAYER_MODE_DEAD);
// Take a life off..
CGameSlotManager::getSlotData()->m_lives--;
PAUL_DBGMSG("lives now %d",CGameSlotManager::getSlotData()->m_lives);
}

View File

@ -21,6 +21,10 @@
#include "game\game.h"
#endif
#ifndef __GAME_GAMESLOT_H__
#include "game\gameslot.h"
#endif
/* Std Lib
------- */
@ -109,6 +113,9 @@ void CPlayerModeDead::think()
if((m_deadTime>DEATH_DELAY&&m_player->getPadInputDown()&(PI_JUMP|PI_FIRE))||
m_deadTime>DEATH_TIMEOUT)
{
// Take a life off..
CGameSlotManager::getSlotData()->m_lives--;
CGameScene::restartlevel();
}
}