The International Simutrans Forum


Author Topic: Diagonal reversing bug & fix  (Read 413 times)

0 Members and 1 Guest are viewing this topic.

Offline freddyhayward

  • Devotee
  • *
  • Posts: 687
  • Languages: EN
Diagonal reversing bug & fix
« on: July 22, 2020, 04:16:27 AM »
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).

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20918
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Diagonal reversing bug & fix
« Reply #1 on: July 22, 2020, 10:47:34 AM »
Excellent, thank you for that: now incorporated.