From 6a721b6cb0a9917d50b4be0032720d991c182eba Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 17 May 2001 21:18:35 +0000 Subject: [PATCH] --- source/player/player.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/source/player/player.cpp b/source/player/player.cpp index 1015bc829..11f3fd55d 100644 --- a/source/player/player.cpp +++ b/source/player/player.cpp @@ -1829,7 +1829,18 @@ void CPlayer::takeDamage(DAMAGE_TYPE _damage,REACT_DIRECTION _reactDirection,CTh if(died) { - dieYouPorousFreak(); + DEATH_TYPE deathType; + switch(_damage) + { + case DAMAGE__SQUASH_ENEMY: + deathType=DEATHTYPE__SQUASH; + break; + + default: + deathType=DEATHTYPE__NORMAL; + break; + } + dieYouPorousFreak(deathType); } else {