This commit is contained in:
parent
15ab35a0ee
commit
9dda98ada6
2 changed files with 7 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue