# HG changeset patch # User unc0rr # Date 1232300445 0 # Node ID cecb3cc93251229edb7f4d195378dd5463e8d0c8 # Parent 97500cd389eb5ff315d48fd250c6d0a7e655b1ce Fix angle restriction applying to rc plane when choosing via ammomenu diff -r 97500cd389eb -r cecb3cc93251 hedgewars/HHHandlers.inc --- a/hedgewars/HHHandlers.inc Sun Jan 18 17:36:52 2009 +0000 +++ b/hedgewars/HHHandlers.inc Sun Jan 18 17:40:45 2009 +0000 @@ -56,9 +56,7 @@ CurAmmo:= i end end - end; - -ApplyAmmoChanges(PHedgehog(Gear^.Hedgehog)^) + end end; procedure HHSetWeapon(Gear: PGear); @@ -80,7 +78,9 @@ begin ChangeAmmo(Gear); dec(t) - end + end; + +ApplyAmmoChanges(PHedgehog(Gear^.Hedgehog)^) end; procedure HHSetTimer(Gear: PGear); @@ -555,7 +555,11 @@ if (CurAmmoGear = nil) or ((CurAmmoGear^.Ammo^.Propz and ammoprop_AltAttack) <> 0) then begin - if ((Gear^.Message and gm_Slot) <> 0) then ChangeAmmo(Gear); + if ((Gear^.Message and gm_Slot) <> 0) then + begin + ChangeAmmo(Gear); + ApplyAmmoChanges(PHedgehog(Gear^.Hedgehog)^) + end; if ((Gear^.Message and gm_Weapon) <> 0) then HHSetWeapon(Gear);