The International Simutrans Forum

 

Author Topic: Signals on diagonals have wrong direction info  (Read 370 times)

0 Members and 1 Guest are viewing this topic.

Offline Vladki

  • Devotee
  • *
  • Posts: 3338
    • My addons, mostly roadsigns, pak128.cs
  • Languages: EN, CS
Signals on diagonals have wrong direction info
« on: June 23, 2018, 12:07:42 PM »
Hello,

I have noticed that signals on diagonal track have a but weird direction info. It should show the direction of exit from the tile, bit it shows the entry direction. See the screenshot here:

The signal on left (choose signal) should have direction south, and the signal on right (distant) direction west.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 19824
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Signals on diagonals have wrong direction info
« Reply #1 on: June 23, 2018, 01:05:46 PM »
I am not sure whether this is really solvable: Simutrans does not really have diagonals: what appear to be diagonals are actually treated in the game as a series of straight lines in a step formation, and the underlying directional information is based on this.

Offline Vladki

  • Devotee
  • *
  • Posts: 3338
    • My addons, mostly roadsigns, pak128.cs
  • Languages: EN, CS
Re: Signals on diagonals have wrong direction info
« Reply #2 on: June 23, 2018, 01:52:07 PM »
I thought just using a different value from the ribi might be enough, but I do not know enough about this par of code.