The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: koroal on December 01, 2022, 10:44:39 AM

Title: [Patch] FIX invert schedule function not working properly
Post by: koroal on December 01, 2022, 10:44:39 AM
Hello everyone!

I have discovered Simutrans a few days ago and I like it a lot!
That being said, if at all possible, I would like to contribute a few patches which rectify some problems that I have encountered. I will create a separate topic for every proposal.

This one fixes a problem with the button which is supposed, as I understand, to reverse the order of waypoints in a train's schedule. The current implementation stops one iteration earlier when the number of waypoints is even. As a result, the two waypoints in the middle of the schedule do not get swapped.
Title: Re: [Patch] FIX invert schedule function not working properly
Post by: Yona-TYT on December 01, 2022, 10:55:20 AM
Out of curiosity, how did you come across Simutrans?.  :)
Title: Re: [Patch] FIX invert schedule function not working properly
Post by: koroal on December 01, 2022, 11:12:03 AM
I had heard about transportation and other economic simulations before, but had never actually look into them. Recently, I had been in a mood to try to play something like that. I had searched for the one transportation sim I had heard of at the time, and also for any alternatives that also would be playable on linux. Simutrans was another game that was often recommended in the search results and so I have tried it.
Title: Re: [Patch] FIX invert schedule function not working properly
Post by: Dwachs on December 02, 2022, 07:01:47 AM
thanks for your patches! will submit them soon.
Title: Re: [Patch] FIX invert schedule function not working properly
Post by: koroal on December 02, 2022, 07:07:48 AM
Dwachs, thank you very much!
Title: Re: [Patch] FIX invert schedule function not working properly
Post by: Dwachs on December 02, 2022, 05:43:42 PM
this is in r10823, thank you!