- backported Zandronum's MaxHealth base class for the MaxHealthBonus item.

This commit is contained in:
Christoph Oelckers 2017-03-02 11:39:52 +01:00
commit b194ba205a
6 changed files with 39 additions and 6 deletions

View file

@ -1340,7 +1340,7 @@ bool P_GiveBody(AActor *actor, int num, int max)
{
if (!(player->MorphStyle & MORPH_ADDSTAMINA))
{
max -= player->mo->stamina;
max -= player->mo->stamina + player->mo->BonusHealth;
}
}
else // old health behaviour
@ -1348,7 +1348,7 @@ bool P_GiveBody(AActor *actor, int num, int max)
max = MAXMORPHHEALTH;
if (player->MorphStyle & MORPH_ADDSTAMINA)
{
max += player->mo->stamina;
max += player->mo->stamina + player->mo->BonusHealth;
}
}
}