If I hide rails nearby rails become hidden and as I move new rails become hidden. No rails become visible again, which I assume is the wanted behavior.
However, if I then hit the keybind again to display rails again, only nearby rails are displayed. For those furthest away, I need to go near them for them to be drawed.
You could fix this two different ways:
- hiding hides ALL rails on the map, not only the nearest, and hitting the key again displays ALL rails too
- same behavior as now but when un-hiding, ensure all rails everywhere are displayed again
Also, I noticed you hide the rail shadow too. It would be useful to leave it, since it makes it easy to see where elevated rails are when these are hidden.