The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: swed on February 11, 2012, 11:45:07 AM

Title: [bugreport] Line update while paused
Post by: swed on February 11, 2012, 11:45:07 AM
Hello !

Here is a way to reproduce an annoying bug, from last svn revision :
- convoi on line1, carrying passengers from stop1 to stop2
- pause
- update line1, replace stop2 by stop3
- save
- unpause

Then, convoi still carry passengers to stop2, which is nomore in his schedule. It wins money without transporting any passenger.
Wrong freight removal is apparently not called using this way (done at each convoi step when line_update_pending is set).
If you don't pause, or don't save, it works fine.

Maybe I just have to stop saving while paused...
Bye!
Title: Re: [bugreport] Line update while paused
Post by: Dwachs on February 11, 2012, 01:10:56 PM
thanks for the report, will look into it.

Edit: should be fixed in r5274.
Title: Re: [bugreport] Line update while paused
Post by: swed on February 23, 2012, 04:58:45 PM
Hi !

I confirm it's corrected.
Thanks a lot for this quick fix.

But there is still a way to reproduce this problem, acting like that :
- convoi on line1, carrying passengers from stop1 to stop2
- pause
- update line1, replace stop2 by stop3
- save game
- load game

(today's rev 5411)
Title: Re: [bugreport] Line update while paused
Post by: Dwachs on February 23, 2012, 05:16:17 PM
yes you are right, I still have the savegamem, which I used to fix one half of the bug, the other half is still in the savegame.

Edit: please check again with r5413. Convoys with wrong freight have to be manually corrected: just open & close their schedule window.
Title: Re: [bugreport] Line update while paused
Post by: swed on February 23, 2012, 09:08:05 PM
It's ok in r5413. Thanks again ;)