Oh, and # too to prevent occasional game hang when N is followed by #
authorunc0rr
Fri, 22 Feb 2013 11:35:54 +0400
changeset 8545 1385ab7219d9
parent 8543 b7f07363ee92
child 8547 6898be8aa261
child 8548 b98631bf2066
Oh, and # too to prevent occasional game hang when N is followed by #
hedgewars/uIO.pas
--- a/hedgewars/uIO.pas	Fri Feb 22 11:33:30 2013 +0400
+++ b/hedgewars/uIO.pas	Fri Feb 22 11:35:54 2013 +0400
@@ -251,7 +251,7 @@
         Move(s, sendBuffer.buf[sendBuffer.count], byte(s[0]) + 1);
         inc(sendBuffer.count, byte(s[0]) + 1);
         
-        if s[1] = 'N' then
+        if (s[1] = 'N') or (s[1] = '#') then
             flushBuffer();
         end else
         SDLNet_TCP_Send(IPCSock, @s, Succ(byte(s[0])))