mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 06:41:41 +00:00
- Fixed: Morphed players tried endlessly to switch to a weapon they picked up.
SVN r2027 (trunk)
This commit is contained in:
parent
fdec06ff9b
commit
1c5103c9b1
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue