Ensures that the force shield's sprite returns to the proper state after receiving an invincibility monitor.

Fixes http://mb.srb2.org/showthread.php?p=752815
This commit is contained in:
ilag11111 2014-05-14 16:27:37 -07:00
parent d859b70b25
commit aafc0bcb0d

View file

@ -1401,6 +1401,17 @@ void P_SpawnShieldOrb(player_t *player)
P_SetTarget(&ov->target, shieldobj);
P_SetMobjState(ov, shieldobj->info->missilestate);
}
if (player->powers[pw_shield] & SH_FORCE)
{
//Copy and pasted from P_ShieldLook in p_mobj.c
if (shieldobj->movecount < 1)
{
if (shieldobj->info->painstate)
P_SetMobjState(shieldobj,shieldobj->info->painstate);
else
shieldobj->flags2 |= MF2_SHADOW;
}
}
}
//