comparison src/saveload/afterload.cpp @ 14213:41b2e7bf03da draft

(svn r18764) -Fix [FS#3422]: split the (un)load ticks counter and signal wait counter; sometimes they might get into eachother's way
author rubidium <rubidium@openttd.org>
date Sat, 09 Jan 2010 14:43:08 +0000
parents 72a4eae02e7d
children a899d4e5ee1a
comparison
equal deleted inserted replaced
14212:01a43782fec9 14213:41b2e7bf03da
1995 _m[t].m2 = ground << 6 | density << 4 | counter; 1995 _m[t].m2 = ground << 6 | density << 4 | counter;
1996 } 1996 }
1997 } 1997 }
1998 } 1998 }
1999 1999
2000 /* Wait counter and load/unload ticks got split. */
2001 if (CheckSavegameVersion(136)) {
2002 Aircraft *a;
2003 FOR_ALL_AIRCRAFT(a) {
2004 a->turn_counter = a->current_order.IsType(OT_LOADING) ? 0 : a->load_unload_ticks;
2005 }
2006
2007 Train *t;
2008 FOR_ALL_TRAINS(t) {
2009 t->wait_counter = t->current_order.IsType(OT_LOADING) ? 0 : t->load_unload_ticks;
2010 }
2011 }
2012
2000 /* Road stops is 'only' updating some caches */ 2013 /* Road stops is 'only' updating some caches */
2001 AfterLoadRoadStops(); 2014 AfterLoadRoadStops();
2002 AfterLoadLabelMaps(); 2015 AfterLoadLabelMaps();
2003 2016
2004 GamelogPrintDebug(1); 2017 GamelogPrintDebug(1);