The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: ceeac on May 22, 2024, 05:27:45 AM

Title: Convoy loses line if line is edited while convoy window is open
Post by: ceeac on May 22, 2024, 05:27:45 AM
I can reproduce this in r11221:
Title: Re: Convoy loses line if line is edited while convoy window is open
Post by: Roboron on May 22, 2024, 02:00:40 PM
Happening at least since the 123 release, I reported it two years ago: https://forum.simutrans.com/index.php/topic,21736.msg200958.html#msg200958

Would be cool if we can get it fixed for the bugfix release...
Title: Re: Convoy loses line if line is edited while convoy window is open
Post by: prissi on May 23, 2024, 05:59:28 AM
This happens since the dawn of Simutrans.

The problem is that the convois schedule is constantly compared to the line to find out if it has to be removed from the line or not after editing is finished. One could of course force even convois with status editing to update to the line and losing any pending changes.

But I guess the intended outcome is rather to discard these changes and apply the line schedule. In in r11231
Title: Re: Convoy loses line if line is edited while convoy window is open
Post by: Roboron on May 23, 2024, 10:31:53 PM
I have tested it briefly and now it works as expected!

You have improved my life and the life of millions of players substantially, thank you. I'll make sure you get the Nobel prize of bug fixing this year!
Title: Re: Convoy loses line if line is edited while convoy window is open
Post by: Yona-TYT on May 23, 2024, 10:58:15 PM
Every time Prissi changes something regarding the schedule logic it brings me concerns. Hehe 😆

Because that part in the tutorial is very delicate and sometimes ends up breaking something.

I'll do some tests just in case. 😉