OpenTTD

Tasklist

FS#6536 - Loading speed is calculated after graphics calculation

Attached to Project: OpenTTD
Opened by George (George) - Wednesday, 04 January 2017, 17:52 GMT
Last edited by Peter Nelson (peter1138) - Monday, 13 March 2017, 07:37 GMT
Type Bug
Category Vehicles
Status Closed
Assigned To No-one
Operating System All
Severity Medium
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

R27706

When I specify loading speed based on cargo graphics, that is changed on new load (random_switch(... bitmask(TRIGGER_VEHICLE_NEW_LOAD)0), the value is not updated before 1-st step of loading. Only the second step gets correct values.
In the example steel frames should be loaded in 2 tics, while tubes in 3 ticks. But as you can see, the values are from previous load.
A GRF to check http://bundles.openttdcoop.org/xussrset/nightlies/v6212-1796/ use a flatbed for steel


This task depends upon

Closed by  Peter Nelson (peter1138)
Monday, 13 March 2017, 07:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r27788
Comment by Peter Nelson (peter1138) - Sunday, 12 March 2017, 15:43 GMT
Please test this patch which should fix it. Or break horribly. I don't know, I've not tested it beyond making sure it compiles.

Loading...