clear HHJump on portaling
authornemo
Fri, 16 Sep 2011 15:21:27 -0400
changeset 5940 c025b4842cb4
parent 5937 2de4fa7102bf
child 5942 415c9bdb186e
clear HHJump on portaling
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Fri Sep 16 15:03:29 2011 -0400
+++ b/hedgewars/GSHandlers.inc	Fri Sep 16 15:21:27 2011 -0400
@@ -4177,7 +4177,11 @@
 
         // Until loops are reliably broken
         if iscake then iterator^.PortalCounter:= 33
-        else inc(iterator^.PortalCounter);
+        else
+            begin
+            inc(iterator^.PortalCounter);
+            iterator^.State:= iterator^.State and not gstHHHJump
+            end;
 
         if not isbullet and (iterator^.Kind <> gtFlake) then
             FollowGear := iterator;