# HG changeset patch
# User unc0rr
# Date 1215384924 0
# Node ID 4a655f3449004c87f47bb8932b2b1fbaf5e95286
# Parent  57a248ff3832d6f160cbd122e716fdf147fe25a8
Fix net game regression

diff -r 57a248ff3832 -r 4a655f344900 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;