From 1cf770271c62e34c8b25e279e685d50830059084 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 4 Oct 2008 07:45:54 +0000 Subject: [PATCH] - Fixed: Resurrecting a player didn't unset the RF_INVISIBLE flag which is set when the player is crushed to gibs under a door. SVN r1251 (trunk) --- docs/rh-log.txt | 4 ++++ src/m_cheat.cpp | 1 + 2 files changed, 5 insertions(+) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 1fb977776..fde3d66d4 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,3 +1,7 @@ +October 4, 2008 (Changes by Graf Zahl) +- Fixed: Resurrecting a player didn't unset the RF_INVISIBLE flag which is + set when the player is crushed to gibs under a door. + September 28, 2008 (Changes by Graf Zahl) - Fixed: Dropitem gave incorrect amounts to the item if a probability was set. diff --git a/src/m_cheat.cpp b/src/m_cheat.cpp index 1a2762167..3e8fcda73 100644 --- a/src/m_cheat.cpp +++ b/src/m_cheat.cpp @@ -306,6 +306,7 @@ void cht_DoCheat (player_t *player, int cheat) player->mo->flags3 = player->mo->GetDefault()->flags3; player->mo->flags4 = player->mo->GetDefault()->flags4; player->mo->flags5 = player->mo->GetDefault()->flags5; + player->mo->renderflags &= ~RF_INVISIBLE; player->mo->height = player->mo->GetDefault()->height; player->mo->special1 = 0; // required for the Hexen fighter's fist attack. // This gets set by AActor::Die as flag for the wimpy death and must be reset here.