OpenTTD

Tasklist

FS#3201 - vehicles with timetabled stops not loading correctly

Attached to Project: OpenTTD
Opened by fonsinchen (fonsinchen) - Tuesday, 15 September 2009, 12:54 GMT
Last edited by Remko Bijker (Rubidium) - Tuesday, 15 September 2009, 20:14 GMT
Type Bug
Category Core
Status Closed
Assigned To No-one
Operating System All
Severity High
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

In the attached savegame there is a train with some stops in its order list. At each stop it loads and unloads cargo and is forced to wait for 30 days via the timetable feature. There isn't a lot of cargo at those stations and thus before the 30 days are over the waiting cargo is drained. Then the code in LoadUnloadVehicle in economy.cpp sets VF_LOADING_FINISHED for the train as it didn't load or unload anything during some loading cycle. Cargo appearing at the station after that event but before the 30 days are over is therefore not loaded and the train just sits there waiting.
This task depends upon

Closed by  Remko Bijker (Rubidium)
Tuesday, 15 September 2009, 20:14 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r17551

Loading...