- 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)
This commit is contained in:
Christoph Oelckers 2006-06-23 16:20:41 +00:00
parent 27c00bcb95
commit 1faa6d57a4
2 changed files with 3 additions and 0 deletions

View File

@ -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.

View File

@ -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);
}