- let player_t::Resurrect use P_BringUpWeapon to raise the weapon again instead of doing it directly.

This seems a bit safer.
This commit is contained in:
Christoph Oelckers 2018-11-24 17:24:08 +01:00
commit d8aa39e03e
3 changed files with 2 additions and 22 deletions

View file

@ -690,7 +690,8 @@ bool player_t::Resurrect()
}
if (ReadyWeapon != nullptr)
{
P_SetPsprite(this, PSP_WEAPON, ReadyWeapon->GetUpState());
PendingWeapon = ReadyWeapon;
P_BringUpWeapon(this);
}
if (morphTics)