17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-30 00:27:29 +01:00

fix(track): timbermodel of a track lays switch timbers without sleepers3d in eu07.ini

This commit is contained in:
2026-10-21 15:37:11 +02:00
parent 3c890e4eb9
commit 30cb83584d
3 changed files with 4 additions and 4 deletions

View File

@@ -58,7 +58,8 @@ bool bedded( TTrack const &Track ) {
bool lays( TTrack const &Track ) {
return timber_model() != nullptr && bedded( Track );
// the model of the track itself (timbermodel) is enough, without sleepers3d in eu07.ini
return bedded( Track ) && timber_model( Track ) != nullptr;
}
std::vector<std::pair<double, double>> shared_zones( TTrack const &Track, int const Path ) {