mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 20:31:30 +00:00
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:
parent
d859b70b25
commit
aafc0bcb0d
1 changed files with 11 additions and 0 deletions
11
src/p_user.c
11
src/p_user.c
|
@ -1401,6 +1401,17 @@ void P_SpawnShieldOrb(player_t *player)
|
||||||
P_SetTarget(&ov->target, shieldobj);
|
P_SetTarget(&ov->target, shieldobj);
|
||||||
P_SetMobjState(ov, shieldobj->info->missilestate);
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue