--- a/hedgewars/uUtils.pas Thu Apr 04 00:32:57 2013 +0200
+++ b/hedgewars/uUtils.pas Thu Apr 04 01:38:30 2013 +0200
@@ -194,14 +194,18 @@
str(n, IntToStr)
end;
-function StrToInt(s: shortstring): LongInt;
+function StrToInt(s: shortstring): LongInt;
var c: LongInt;
begin
+{$IFDEF PAS2C}
+val(s, StrToInt);
+{$ELSE}
val(s, StrToInt, c);
{$IFDEF DEBUGFILE}
if c <> 0 then
writeln(f, 'Error at position ' + IntToStr(c) + ' : ' + s[c])
{$ENDIF}
+{$ENDIF}
end;
function FloatToStr(n: hwFloat): shortstring;