- fixed: Not all paths in A_CStaffCheck did proper checks on the player's health.

This commit is contained in:
Christoph Oelckers 2016-02-28 15:14:05 +01:00
parent 94f37bde30
commit c390b98966

View file

@ -112,7 +112,10 @@ DEFINE_ACTION_FUNCTION(AActor, A_CStaffCheck)
{
newLife = player->health + (damage >> 4);
newLife = newLife > max ? max : newLife;
pmo->health = player->health = newLife;
if (newLife > player->health)
{
pmo->health = player->health = newLife;
}
P_SetPsprite(player, ps_weapon, weapon->FindState("Drain"));
}
if (weapon != NULL)