Fix net game regression
authorunc0rr
Sun, 06 Jul 2008 22:55:24 +0000
changeset 1060 4a655f344900
parent 1059 57a248ff3832
child 1061 a30296274c46
Fix net game regression
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Sun Jul 06 22:46:44 2008 +0000
+++ b/hedgewars/uGears.pas	Sun Jul 06 22:55:24 2008 +0000
@@ -481,7 +481,11 @@
                  end;
         stChWin: if not CheckForWin then
                     begin
-                    if not bBetweenTurns then SwitchHedgehog;
+                    if not bBetweenTurns then
+                       begin
+                       SwitchHedgehog;
+                       ParseCommand('/nextturn', true);
+                       end;
                     inc(step)
                     end else step:= stDelay;
         stWater: begin
@@ -520,7 +524,6 @@
         stNTurn: begin
                  if isInMultiShoot then isInMultiShoot:= false
                     else begin
-                    ParseCommand('/nextturn', true);
                     AfterSwitchHedgehog;
                     bBetweenTurns:= false
                     end;