add gstMoving to avoid sticking
authornemo
Tue, 06 Nov 2012 20:28:15 -0500
changeset 7992 0b7dc27b2baf
parent 7990 891b78af1a04
child 7994 706218709157
add gstMoving to avoid sticking
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Tue Nov 06 23:59:58 2012 +0400
+++ b/hedgewars/GSHandlers.inc	Tue Nov 06 20:28:15 2012 -0500
@@ -3847,7 +3847,7 @@
             begin
             inc(iterator^.PortalCounter);
             iterator^.Active:= true;
-            iterator^.State:= iterator^.State and (not gstHHHJump)
+            iterator^.State:= iterator^.State and (not gstHHHJump) or gstMoving;
             end;
 
         // is it worth adding an arcsin table?  Just how often would we end up doing something like this?
@@ -4051,7 +4051,7 @@
                     or ((iterator^.Message and gmAllStoppable) = 0)) then
                             begin
                             iterator^.Active:= true;
-                            if iterator^.dY.QWordValue = _0.QWordValue then
+                            if iterator^.dY.QWordValue = 0 then
                                 iterator^.dY.isNegative:= false;
                             iterator^.State:= iterator^.State or gstMoving;
                             DeleteCI(iterator);