hedgewars/uGame.pas
changeset 113 d975a426ebf7
parent 109 ab0340f580c2
child 143 3dacbd83209b
--- a/hedgewars/uGame.pas	Wed Aug 16 21:35:27 2006 +0000
+++ b/hedgewars/uGame.pas	Thu Aug 17 13:54:18 2006 +0000
@@ -54,13 +54,14 @@
    end
    else begin
    ProcessKbd;
-   NetGetNextCmd; // its for the case when receiving /say message
+   NetGetNextCmd; // its for the case when receiving "/say" message
+   isInLag:= false;
+   inc(SendEmptyPacketTicks, Lag);
    if SendEmptyPacketTicks >= cSendEmptyPacketTime then
       begin
-      SendIPC('+');
+      SendIPC('N');
       SendEmptyPacketTicks:= 0
-      end;
-   inc(SendEmptyPacketTicks, Lag)
+      end
    end;
 
 if Lag > 100 then Lag:= 100
@@ -79,7 +80,7 @@
        NetGetNextCmd;
        if isInLag then
           case GameType of
-               gmtNet: break;
+                gmtNet: break;
                gmtDemo: begin
                         GameState:= gsExit;
                         exit
@@ -94,7 +95,6 @@
        end;
     inc(i)
     end;
-if not CurrentTeam.ExtDriven then isInLag:= false;
 
 MoveCamera
 end;