Welp. We have a bit of a problem here. Reverting the move of nextturn. But this causes a desync in scripting unless we can find a better fix.
authornemo
Mon, 04 Jun 2012 19:36:55 -0400
changeset 7181 0791c1f2734c
parent 7178 c61cfc9eb29d
child 7183 95dc11d648fb
Welp. We have a bit of a problem here. Reverting the move of nextturn. But this causes a desync in scripting unless we can find a better fix.
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Mon Jun 04 22:43:56 2012 +0400
+++ b/hedgewars/uGears.pas	Mon Jun 04 19:36:55 2012 -0400
@@ -363,11 +363,11 @@
 
                 FreeActionsList; // could send -left, -right and similar commands, so should be called before /nextturn
 
+                ParseCommand('/nextturn', true);
                 SwitchHedgehog;
 
                 AfterSwitchHedgehog;
-                bBetweenTurns:= false;
-                ParseCommand('/nextturn', true)
+                bBetweenTurns:= false
                 end;
             step:= Low(step)
             end;