The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

Diagonal reversing bug & fix

Started by freddyhayward, July 22, 2020, 04:16:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


Convoys are currently forced to unnecessarily reverse when having their schedules edited on diagonal ways, even when no changes have been made, or when the new route does not require a reversal. This pull request fixes the issue:

The problem occurs because the facing direction of a convoy on a diagonal tile is always a compound direction (e.g. northeast, southwest) where the next tile in the route is technically only accessible from a single direction (e.g. north, south).


Excellent, thank you for that: now incorporated.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.