News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

2 speed limit bugs: mothballed roads or railways; and fords

Started by neroden, September 13, 2023, 10:17:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

neroden

1.  When you unmothball a road, sometimes the speed limit stays stuck at zero -- you have to overwrite it with a different type of road to get the speed limit to reset.  There's probably a missing step in the code for replacing mothballed roads with non-mothballed.  It only seems to happen on the end tiles in a long road, the ones which junction to the neighboring already-non-mothballed road.

2. When you remove the stream from a ford, the speed limit on the road doesn't go up (it stays 4 km/h).  Again, you have to overwrite it with a different road to get the correct speed limit back.  Again, there's probably a missing check in the code for the river removal.

There should be (if there isn't already) a "reset all speed limits to correct ones on this tile" function which goes through all the ways on a tile and sets the speed limits (and probably other stuff like weight limits) to whatever they "should" be based on the current state of the tile.  This should be called after any editing operations on the tile, to avoid duplicate checks.

I don't have time to do the code fixes myself but I hope this gives a layout as to what should be done.

jamespetts

Apologies for the delay: I believe that I have now fixed these.  The fixes should be available in the next nightly build.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.