From 1faa6d57a4c1764e0c009ec1da4ec285b5b4492c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 23 Jun 2006 16:20:41 +0000 Subject: [PATCH] - Fixed: The resurrect cheat didn't reset the player's damage type so if he died by being frozen the blue blend didn't disappear. SVN r216 (trunk) --- docs/rh-log.txt | 2 ++ src/m_cheat.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 14cff3e04..41a1836da 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,6 @@ June 22, 2006 (Changes by Graf Zahl) +- Fixed: The resurrect cheat didn't reset the player's damage type so + if he died by being frozen the blue blend didn't disappear. - Fixed: FWarpTexture::MakeTexture must be declared virtual so that the FWarp2Texture version of it can be called. diff --git a/src/m_cheat.cpp b/src/m_cheat.cpp index 6a2aabced..29d86e0cb 100644 --- a/src/m_cheat.cpp +++ b/src/m_cheat.cpp @@ -294,6 +294,7 @@ void cht_DoCheat (player_t *player, int cheat) player->mo->height = player->mo->GetDefault()->height; player->mo->SetState (player->mo->SpawnState); player->mo->Translation = TRANSLATION(TRANSLATION_Players, BYTE(player-players)); + player->mo->DamageType = MOD_UNKNOWN; // player->mo->GiveDefaultInventory(); P_SetPsprite(player, ps_weapon, player->ReadyWeapon->UpState); }