hedgewars/uCommandHandlers.pas
changeset 8370 0c79946e96f8
parent 8145 6408c0ba4ba1
child 8444 75db7bb8dce8
child 8556 6f4c2711baa6
--- a/hedgewars/uCommandHandlers.pas	Thu Jan 10 22:54:55 2013 +0400
+++ b/hedgewars/uCommandHandlers.pas	Thu Jan 10 22:59:46 2013 +0400
@@ -89,11 +89,11 @@
 end;
 
 procedure chCheckProto(var s: shortstring);
-var i, c: LongInt;
+var i: LongInt;
 begin
     if isDeveloperMode then
         begin
-        val(s, i, c);
+        i:= StrToInt(s);
         TryDo(i <= cNetProtoVersion, 'Protocol version mismatch: engine is too old (got '+intToStr(i)+', expecting '+intToStr(cNetProtoVersion)+')', true);
         TryDo(i >= cNetProtoVersion, 'Protocol version mismatch: engine is too new (got '+intToStr(i)+', expecting '+intToStr(cNetProtoVersion)+')', true);
         end