- fixed: CHANGELEVEL_RESETINVENTORY may not change the player's health.
APlayerPawn::GiveDefaultInventory altered the player_t's health value which was ok as long as this function was only called from G_PlayerReborn. For all other cases this initialization was wrong and G_PlayerReborn should do this itself.
This commit is contained in:
parent
cfe97b0f0f
commit
fc40e9723a
3 changed files with 3 additions and 4 deletions
|
|
@ -1203,9 +1203,6 @@ void APlayerPawn::GiveDefaultInventory ()
|
|||
{
|
||||
if (player == NULL) return;
|
||||
|
||||
// [GRB] Give inventory specified in DECORATE
|
||||
player->health = GetDefault ()->health;
|
||||
|
||||
// HexenArmor must always be the first item in the inventory because
|
||||
// it provides player class based protection that should not affect
|
||||
// any other protection item.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue