hedgewars/HHHandlers.inc
changeset 931 ab4d98858a40
parent 930 3f61bd3b08fd
child 941 b5222ddafe1f
--- a/hedgewars/HHHandlers.inc	Tue May 13 20:00:48 2008 +0000
+++ b/hedgewars/HHHandlers.inc	Wed May 14 14:13:18 2008 +0000
@@ -476,9 +476,13 @@
 		Attack(Gear) // should be before others to avoid desync with '/put' msg and changing weapon msgs
 	else
 else with PHedgehog(Gear^.Hedgehog)^ do
-	 if ((CurAmmoGear^.Ammo^.Propz and ammoprop_AltAttack) <> 0)
+	 if ((CurAmmoGear^.Ammo^.Propz and ammoprop_AltAttack) <> 0) 
 		and ((Gear^.Message and gm_LJump) <> 0)
-		and (((Ammo^[CurSlot, CurAmmo].Propz) and ammoprop_AltUse) <> 0) then Attack(Gear);
+		and (((Ammo^[CurSlot, CurAmmo].Propz) and ammoprop_AltUse) <> 0) then
+		begin
+		Gear^.Message:= Gear^.Message and not gm_LJump;
+		Attack(Gear)
+		end;
 
 if (CurAmmoGear = nil)
 	or ((CurAmmoGear^.Ammo^.Propz and ammoprop_AltAttack) <> 0) then