- 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
parent fdec06ff9b
commit 1c5103c9b1
2 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,6 @@
December 16, 2009 (Changes by Graf Zahl)
- fixed:P_DamageMobj just set an ice corpse's velocity to 0 to make it shatter.
- Fixed: Morphed players tried endlessly to switch to a weapon they picked up.
- fixed: P_DamageMobj just set an ice corpse's velocity to 0 to make it shatter.
But that's insufficient because it doesn't factor in any subsequent velocity
change that happens between the damaging and the next call to A_FreezeDeathChunks.
- fixed: The TimeFreezer did not freeze other players' controls in a

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;
}
}
//---------------------------------------------------------------------------