The International Simutrans Forum

Development => Bug Reports => Topic started by: Nazalassa on August 25, 2026, 02:17:24 PM

Title: [minor] Schedule overlay on map looks weird on slopes and bridge heads
Post by: Nazalassa on August 25, 2026, 02:17:24 PM
Minor aesthetic issue: the overlay does not remain on the tracks on slopes and bridge heads.

(https://files.simutrans-germany.com/upload/slope-overlay.png)
Title: Re: [minor] Schedule overlay on map looks weird on slopes and bridge heads
Post by: prissi on August 25, 2026, 08:48:36 PM
grund_t::get_weg_yoff() can give the right extra offset, but one has to look up the ground first ...
Title: Re: [minor] Schedule overlay on map looks weird on slopes and bridge heads
Post by: victor_18993 on August 25, 2026, 09:09:33 PM
Fixed in r12213.

The schedule route overlay was using the ground base projection and therefore did not follow the actual way surface correctly through slopes and bridge heads.

The fix now uses the existing way-height information and adds the required breakpoint at slope transitions. Flat ground, slopes, bridge heads and all four rotations are covered by regression tests.

Thanks for reporting it.