18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-27 21:45:16 +01:00
Files
maszyna/lang
jerrrrycho 169527f333 feat(editor): dirt road type with looser layout limits in the road tool (#491)
* feat(editor): dirt road type with looser layout limits in the road tool

Every road shared the limits of a built road, so the road tool refused
field tracks that bend tight, kink, have very short straights and fork
at sharp angles (#347).

Roads now have a type, paved (the default, with the limits as they
were) or dirt, chosen in the road settings and saved with each piece as
"surfacetype dirt". A dirt road bends down to a 3 m radius instead of
6 m, can be 1 m long instead of 2 m, leaves other roads at 15 degrees
instead of 30, may lead off square to the far end when both ends are
tied, and may turn up to 240 degrees in a hairpin. The limits come from
one table, editor/editorRoadLimits.hpp, whose paved row holds the old
constants.

A paved road writes nothing new, so existing sceneries load and save
byte for byte as before. Switching a road to dirt turns the default
asphalt into the field road texture droga_polna from the game data and
drops the white markings; a material picked by hand stays.

* fix(editor): no bend of a road tighter than the road is wide, pi from <numbers>, the type's name as a string_view
2026-11-26 22:28:58 +01:00
..