The International Simutrans Forum

Development => Bug Reports => Topic started by: Nazalassa on April 30, 2026, 04:53:56 PM

Title: Since r11798: bridges no longer set their max speed
Post by: Nazalassa on April 30, 2026, 04:53:56 PM
bad-speed.png

Steps to reproduce - Select a bridge which max speed is not that of any way (e.g the 100 km/h bridge of pak64). Build a bridge. Use the inspection tool on the middle of the bridge. The reported speed is incorrect.

Proposed fix: in src/simutrans/obj/bruecke.cc, line 200 is:
        if(desc->get_waytype()!=powerline_wt  &&  gr->get_typ()==grund_t::boden) {
Removing the second condition (which was added in r11798) solves the bug:
        if(desc->get_waytype()!=powerline_wt) {
though I cannot explain why.