- 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)
This commit is contained in:
Christoph Oelckers 2008-10-04 07:45:54 +00:00
parent 52ad2800d1
commit 1cf770271c
2 changed files with 5 additions and 0 deletions

View file

@ -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) September 28, 2008 (Changes by Graf Zahl)
- Fixed: Dropitem gave incorrect amounts to the item if a probability was set. - Fixed: Dropitem gave incorrect amounts to the item if a probability was set.

View file

@ -306,6 +306,7 @@ void cht_DoCheat (player_t *player, int cheat)
player->mo->flags3 = player->mo->GetDefault()->flags3; player->mo->flags3 = player->mo->GetDefault()->flags3;
player->mo->flags4 = player->mo->GetDefault()->flags4; player->mo->flags4 = player->mo->GetDefault()->flags4;
player->mo->flags5 = player->mo->GetDefault()->flags5; player->mo->flags5 = player->mo->GetDefault()->flags5;
player->mo->renderflags &= ~RF_INVISIBLE;
player->mo->height = player->mo->GetDefault()->height; player->mo->height = player->mo->GetDefault()->height;
player->mo->special1 = 0; // required for the Hexen fighter's fist attack. 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. // This gets set by AActor::Die as flag for the wimpy death and must be reset here.