(svn r18764) -Fix [FS#3422]: split the (un)load ticks counter and signal wait counter; sometimes they might get into eachother's way

This commit is contained in:
rubidium
2010-01-09 14:43:08 +00:00
parent 6595434845
commit ad8d6e8dd2
12 changed files with 56 additions and 46 deletions

View File

@@ -1997,6 +1997,19 @@ bool AfterLoadGame()
}
}
/* Wait counter and load/unload ticks got split. */
if (CheckSavegameVersion(136)) {
Aircraft *a;
FOR_ALL_AIRCRAFT(a) {
a->turn_counter = a->current_order.IsType(OT_LOADING) ? 0 : a->load_unload_ticks;
}
Train *t;
FOR_ALL_TRAINS(t) {
t->wait_counter = t->current_order.IsType(OT_LOADING) ? 0 : t->load_unload_ticks;
}
}
/* Road stops is 'only' updating some caches */
AfterLoadRoadStops();
AfterLoadLabelMaps();