The International Simutrans Forum

Development => Bug Reports => Topic started by: Ters on April 29, 2014, 03:49:58 PM

Title: Loading wrong when loading
Post by: Ters on April 29, 2014, 03:49:58 PM
With r7160 and r7178, I experience that vehicle's loading state is messed up upon loading a save game, causing them to stop waiting for the set load and just start driving. I think this is related to the version bumping, so it should be a one-off happening for each game. (At least I can't reproduce it with savegames saved with affected revisions.) Still, it might cause some havock for players when lots of vehicles start moving simultaneously. There might also be economic consequences of having many vehicles moving around without the necessary load to make a profit.
Title: Re: Loading wrong when loading
Post by: Dwachs on April 29, 2014, 05:39:13 PM
Could it be related to the change in r7152?

https://github.com/aburch/simutrans/commit/319765466d0dd469d19c471b91bb633edc944567
Title: Re: Loading wrong when loading
Post by: TurfIt on April 30, 2014, 07:05:26 PM
r7152 broke the 'month wait time' function completely.  max_ticks_waiting was only decreased when wait_lock==0.

Possibly better with r7180...
Title: Re: Loading wrong when loading
Post by: Dwachs on May 01, 2014, 09:23:53 AM
thank you for the fix.
Title: Re: Loading wrong when loading
Post by: Dwachs on May 03, 2014, 11:49:47 AM
there was still a problem with operator precedence, should be fixed in r7191