- Fixed: Morphed players tried endlessly to switch to a weapon they picked up.

SVN r2027 (trunk)
This commit is contained in:
Christoph Oelckers 2009-12-16 22:42:15 +00:00
commit 1c5103c9b1
2 changed files with 7 additions and 1 deletions

View file

@ -505,6 +505,11 @@ void P_CheckWeaponSwitch (player_t *player)
P_SetPsprite (player, ps_weapon, weapon->GetDownState());
return;
}
else if (player->morphTics != 0)
{
// morphed classes cannot change weapons so don't even try again.
player->PendingWeapon = WP_NOCHANGE;
}
}
//---------------------------------------------------------------------------