hedgewars/CCHandlers.inc
changeset 431 79ac59673df3
parent 428 1052ef2f7863
child 495 62c1c2b4414c
--- a/hedgewars/CCHandlers.inc	Sun Feb 11 00:18:16 2007 +0000
+++ b/hedgewars/CCHandlers.inc	Sun Feb 11 11:55:38 2007 +0000
@@ -311,8 +311,8 @@
      with Hedgehogs[CurrHedgehog] do
           begin
           if ((Gear^.State and (gstAttacking or gstAttacked)) <> 0) or (AttacksNum > 0)
-             or ((Gear^.State and gstHHDriven) = 0) then exit; // во время стрельбы исключает смену оружия
-          Gear^.Message:= 0;
+             or ((Gear^.State and gstHHDriven) = 0) then exit;
+          Gear^.Message:= Gear^.Message and not (gm_LJump or gm_HJump);
           if CurAmmoGear = nil then begin caSlot:= @CurSlot; caAmmo:= @CurAmmo end
                                else begin caSlot:= @AltSlot; caAmmo:= @AltAmmo end;
           if caSlot^ = slot then