- Fixed: When PlayerIsGone() destroys a morphed player, it needs to destroy the unmorphed player too.
- Fixed: Destroying a morphed player would try to unmorph the player twice. SVN r3611 (trunk)
This commit is contained in:
parent
0835230454
commit
1656744827
5 changed files with 31 additions and 17 deletions
|
|
@ -558,6 +558,10 @@ bool AWeapon::DepleteAmmo (bool altFire, bool checkEnough, int ammouse)
|
|||
|
||||
void AWeapon::PostMorphWeapon ()
|
||||
{
|
||||
if (Owner == NULL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Owner->player->PendingWeapon = WP_NOCHANGE;
|
||||
Owner->player->ReadyWeapon = this;
|
||||
Owner->player->psprites[ps_weapon].sy = WEAPONBOTTOM;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue