Fix jump changing direction in artillery mode
authorunc0rr
Sun, 31 May 2009 19:31:37 +0000
changeset 2136 3b19c7874a45
parent 2135 0b7972dfad01
child 2137 4bb9ff2069ec
Fix jump changing direction in artillery mode
hedgewars/HHHandlers.inc
--- a/hedgewars/HHHandlers.inc	Sun May 31 17:56:15 2009 +0000
+++ b/hedgewars/HHHandlers.inc	Sun May 31 19:31:37 2009 +0000
@@ -627,9 +627,13 @@
 		((Gear^.State and gstHHHJump) = 0) then
 		if (not (hwAbs(Gear^.dX) > cLittle)) and (Gear^.dY < -_0_02) then
 			begin
-			Gear^.State:= Gear^.State or gstHHHJump or gstMoving;
 			Gear^.dY:= -_0_25;
-			if not cArtillery then Gear^.dX:= -SignAs(_0_02, Gear^.dX);
+			if not cArtillery then
+				begin
+				Gear^.State:= Gear^.State or gstHHHJump;
+				Gear^.dX:= -SignAs(_0_02, Gear^.dX)
+				end;
+			
 			PlaySound(sndJump2, false, PHedgehog(Gear^.Hedgehog)^.Team^.voicepack)
 			end;