mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
Merge branch 'auto_timetables-sx' into jgrpp
This commit is contained in:
commit
b47c8825e7
@ -323,7 +323,11 @@ CommandCost CmdSetTimetableStart(TileIndex tile, DoCommandFlag flags, uint32 p1,
|
||||
w->lateness_counter = 0;
|
||||
ClrBit(w->vehicle_flags, VF_TIMETABLE_STARTED);
|
||||
/* Do multiplication, then division to reduce rounding errors. */
|
||||
#if WALLCLOCK_NETWORK_COMPATIBLE
|
||||
w->timetable_start = start_date + idx * total_duration / num_vehs / DAY_TICKS;
|
||||
#else
|
||||
w->timetable_start = start_date + idx * total_duration / num_vehs;
|
||||
#endif
|
||||
SetWindowDirty(WC_VEHICLE_TIMETABLE, w->index);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user