News:

Want to praise Simutrans?
Your feedback is important for us ;D.

FIX: Upgrade crossings when the rail or road is upgraded

Started by THLeaderH, December 04, 2023, 03:48:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

THLeaderH

Description of the patch
The attached patch fixes the issue that a crossing is not upgraded when the rail or the road of the crossing is upgraded.

Affected features of the patch
This patch affects construction of rails and roads.

Testing procedure
  • The squirrel scenario test function "test_way_road_upgrade_crossing()" was updated to check if the crossing is properly upgraded.
  • The following procedure succeeded with pak64.
    • Build the sand road.
    • Build the 55kph rail to build a crossing.
    • Upgrade the rail to the 120kph rail. Check that the speed limit for rail is 120kph, not 80kph.

prissi

Even with test case, thank you very much. Incorporated in r11016