# HG changeset patch
# User unc0rr
# Date 1361518410 -14400
# Node ID b7f07363ee92a9d51a2d8132b5a952629689cec8
# Parent  0cd63b96333000ff3eee71f5e78c7c5970608230
Flush buffer on N command

diff -r 0cd63b963330 -r b7f07363ee92 hedgewars/uIO.pas
--- a/hedgewars/uIO.pas	Thu Feb 21 22:43:00 2013 +0400
+++ b/hedgewars/uIO.pas	Fri Feb 22 11:33:30 2013 +0400
@@ -249,7 +249,10 @@
             flushBuffer();
             
         Move(s, sendBuffer.buf[sendBuffer.count], byte(s[0]) + 1);
-        inc(sendBuffer.count, byte(s[0]) + 1)
+        inc(sendBuffer.count, byte(s[0]) + 1);
+        
+        if s[1] = 'N' then
+            flushBuffer();
         end else
         SDLNet_TCP_Send(IPCSock, @s, Succ(byte(s[0])))
     end