The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Topic started by: Vladki on June 23, 2018, 12:07:42 PM

Title: Signals on diagonals have wrong direction info
Post by: Vladki 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:
(http://list.extended.simutrans.org/~vladki/screenshots/simscr79.png)
The signal on left (choose signal) should have direction south, and the signal on right (distant) direction west.
Title: Re: Signals on diagonals have wrong direction info
Post by: jamespetts 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.
Title: Re: Signals on diagonals have wrong direction info
Post by: Vladki 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.