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:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user