The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: RESTRICTED ACCOUNT on May 19, 2022, 11:45:36 AM

Title: PR#540 - FIX: One train staff overlay is broken in diagonal direction
Post by: RESTRICTED ACCOUNT on May 19, 2022, 11:45:36 AM
The essence of the bug report in this thread (https://forum.simutrans.com/index.php/topic,21580.0.html) was that the one train staff-only process did not correctly handle diagonal placement. Thus the code had an error checking for a tile without a track.
Thanks to james for addressing the crash in the interim.
However, the possibility of crashes had not yet been completely ruled out. The display was also broken, so I rewrote this part of the code and changed it so that it would display correctly.
Please check pull request #540.
Title: Re: PR#540 - FIX: One train staff overlay is broken in diagonal direction
Post by: jamespetts on May 20, 2022, 11:51:27 PM
Excellent, thank you for this. Now incorporated.