--- a/hedgewars/uIO.pas Wed Apr 03 00:03:46 2013 +0400
+++ b/hedgewars/uIO.pas Wed Apr 03 00:16:37 2013 +0400
@@ -222,7 +222,11 @@
function isSyncedCommand(c: char): boolean;
begin
- isSyncedCommand:= (c in ['+', '#', 'L', 'l', 'R', 'r', 'U', 'u', 'D', 'd', 'Z', 'z', 'A', 'a', 'S', 'j', 'J', ',', 'c', 'N', 'p', 'P', 'w', 't', '1', '2', '3', '4', '5']) or ((c >= #128) and (c <= char(128 + cMaxSlotIndex)))
+ case c of
+ '+', '#', 'L', 'l', 'R', 'r', 'U', 'u', 'D', 'd', 'Z', 'z', 'A', 'a', 'S', 'j', 'J', ',', 'c', 'N', 'p', 'P', 'w', 't', '1', '2', '3', '4', '5': isSyncedCommand:= true;
+ else
+ isSyncedCommand:= ((c >= #128) and (c <= char(128 + cMaxSlotIndex)))
+ end
end;
procedure flushBuffer();