diff --git a/source/player/player.cpp b/source/player/player.cpp index b40e517c2..40f859d5c 100644 --- a/source/player/player.cpp +++ b/source/player/player.cpp @@ -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); } diff --git a/source/player/pmdead.cpp b/source/player/pmdead.cpp index cb84cdb76..4ff02b403 100644 --- a/source/player/pmdead.cpp +++ b/source/player/pmdead.cpp @@ -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(); } }