diff --git a/source/platform/pghost.cpp b/source/platform/pghost.cpp index 99b3791ef..fadf24183 100644 --- a/source/platform/pghost.cpp +++ b/source/platform/pghost.cpp @@ -279,6 +279,11 @@ void CNpcGhostTrainPlatform::processMovement( int _frames ) { m_playerAttached = false; m_falling = true; + CPlayer *player = GameScene.getPlayer(); + if ( player->getMode() != PLAYER_MODE_DEAD ) + { + player->dieYouPorousFreak(); + } break; } diff --git a/source/player/player.h b/source/player/player.h index fb13e2711..ff3ef4761 100644 --- a/source/player/player.h +++ b/source/player/player.h @@ -360,6 +360,7 @@ private: public: DEATH_TYPE getDeathType() {return m_deathType;} + void dieYouPorousFreak(DEATH_TYPE _deathType=DEATHTYPE__NORMAL); private: int m_numSpatulasHeld; @@ -368,7 +369,6 @@ private: int m_helmetSoundTimer; // Timer for breathing sound when using the helmet - void dieYouPorousFreak(DEATH_TYPE _deathType=DEATHTYPE__NORMAL); DEATH_TYPE m_deathType;