- added parameter to PLayerPawn::GetMaxHealth to return the real maximum health, including stamina upgrades.
This commit is contained in:
parent
12915b5f6e
commit
cb295e0441
7 changed files with 14 additions and 11 deletions
|
|
@ -1330,7 +1330,7 @@ bool P_GiveBody(AActor *actor, int num, int max)
|
|||
// calls while supporting health pickups.
|
||||
if (max <= 0)
|
||||
{
|
||||
max = static_cast<APlayerPawn*>(actor)->GetMaxHealth() + player->mo->stamina;
|
||||
max = static_cast<APlayerPawn*>(actor)->GetMaxHealth(true);
|
||||
// [MH] First step in predictable generic morph effects
|
||||
if (player->morphTics)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue