Ironman: fix non-Race transformations and true death skin restore

This commit is contained in:
AJ Martinez 2022-11-03 06:15:45 -07:00
parent 29595f946b
commit 8d4688af12

View file

@ -4169,12 +4169,13 @@ void P_PlayerThink(player_t *player)
{ {
player->stairjank--; player->stairjank--;
} }
// Random skin / "ironman" // Random skin / "ironman"
if ((!P_MobjWasRemoved(player->mo)) & (skins[player->skin].flags & SF_IRONMAN)) // we are Heavy Magician with a mobj if ((!P_MobjWasRemoved(player->mo)) && (skins[player->skin].flags & SF_IRONMAN)) // we are Heavy Magician with a mobj
{ {
if (((skin_t *)player->mo->skin)->flags & SF_IRONMAN) // no fakeskin yet if (((skin_t *)player->mo->skin)->flags & SF_IRONMAN) // no fakeskin yet
{ {
if (leveltime >= introtime && !player->exiting) if (leveltime >= starttime && !player->exiting)
{ {
if (player->fakeskin != MAXSKINS) if (player->fakeskin != MAXSKINS)
{ {