- Fix accidental network breakage
authorunc0rr
Fri, 27 Jun 2008 20:56:38 +0000
changeset 1038 3c843ce630ea
parent 1037 63f956a6fe7f
child 1039 27187008b12f
- Fix accidental network breakage - Fix warning
hedgewars/uChat.pas
hedgewars/uIO.pas
--- a/hedgewars/uChat.pas	Fri Jun 27 20:11:20 2008 +0000
+++ b/hedgewars/uChat.pas	Fri Jun 27 20:56:38 2008 +0000
@@ -119,7 +119,6 @@
 
 procedure AcceptChatString(s: shortstring);
 var i: TWave;
-	b: boolean;
 begin
 if s[1] = '/' then
 	begin
--- a/hedgewars/uIO.pas	Fri Jun 27 20:11:20 2008 +0000
+++ b/hedgewars/uIO.pas	Fri Jun 27 20:56:38 2008 +0000
@@ -219,6 +219,7 @@
 while (headcmd <> nil) and ((GameTicks = headcmd^.Time) or (headcmd^.cmd = 's')) do
 	begin
 	case headcmd^.cmd of
+		'+': ; // do nothing - it's just empty packet
 		'L': ParseCommand('+left', true);
 		'l': ParseCommand('-left', true);
 		'R': ParseCommand('+right', true);