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