# HG changeset patch # User sheepluva # Date 1417548004 -3600 # Node ID df7a73db2c43cb9ece9c953fa526ce49d5efbcd4 # Parent f2f9928ea2e7346a905fc78ae9e1a901670568ad oops, IOResult is a function in pascal, but not in pas2c diff -r f2f9928ea2e7 -r df7a73db2c43 hedgewars/uUtils.pas --- a/hedgewars/uUtils.pas Tue Dec 02 14:26:16 2014 -0500 +++ b/hedgewars/uUtils.pas Tue Dec 02 20:20:04 2014 +0100 @@ -559,7 +559,8 @@ begin assign(logFile, shortstring(UserPathPrefix) + '/Logs/' + logfileBase + inttostr(i) + '.log'); Rewrite(logFile); - rwfailed:= (IOResult() <> 0); + // note: IOResult is a function in pascal and a variable in pas2c + rwfailed:= (IOResult <> 0); if (not rwfailed) then break; inc(i)