OpenTTD

Tasklist

FS#6515 - missing documentation for AIVehicle.BuildVehicle

Attached to Project: OpenTTD
Opened by Kogut (Kogut) - Wednesday, 21 September 2016, 12:10 GMT
Type Bug
Category Script → NoAI
Status New
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Version?
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

"The VehicleID of the new vehicle, or an invalid VehicleID when it failed. Check the return value using IsValidVehicle. In test-mode 0 is returned if it was successful; any other value indicates failure." is omitting case where contructed vehicle immediately joins other and despite successful construction returned value is invalid.

One case is a new wagon joinining wagons of its type (see https://bugs.openttd.org/task/6514).
This task depends upon

Loading...