OpenTTD

Tasklist

FS#3101 - AILog.* causing error when passed integer

Attached to Project: OpenTTD
Opened by Xander Winson (xmakina) - Sunday, 09 August 2009, 09:40 GMT
Last edited by Thijs Marinussen (Yexo) - Wednesday, 19 August 2009, 14:55 GMT
Type Feature Request
Category Script → NoAI
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version 0.7.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

At the moment, trying to get AILog.Info/Warning to print an integer or boolean results in an error.

Example:
local test = 5;
AILog.Info(test);

It would be nice if integer or boolean results could be automatically converted to a string and displayed by AILog.Info/Warning.

Cheers,
Xander
This task depends upon

Closed by  Thijs Marinussen (Yexo)
Wednesday, 19 August 2009, 14:55 GMT
Reason for closing:  Implemented
Additional comments about closing:  In r17221

Loading...