hedgewars/GSHandlers.inc
changeset 5940 c025b4842cb4
parent 5935 c89d5065d956
child 5969 6b245d2215c2
--- 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;