The International Simutrans Forum

Simutrans Extended => Simutrans Extended Development => Simutrans Extended Solved Bug Reports => Topic started by: freddyhayward on July 22, 2020, 04:16:27 AM

Title: Diagonal reversing bug & fix
Post by: freddyhayward 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: https://github.com/jamespetts/simutrans-extended/pull/217

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).
Title: Re: Diagonal reversing bug & fix
Post by: jamespetts on July 22, 2020, 10:47:34 AM
Excellent, thank you for that: now incorporated.