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

feat(track): frogs cut from the rails and 3D sleepers switched off in the build

track_features::crossings and track_features::sleepers, both off: the rails of plain tracks and of switches with the key
frogs are laid whole as before, and no sleepers or timbers are laid whatever sleepers3d in eu07.ini sets, the ballast kept
This commit is contained in:
maj00r
2026-10-17 23:39:23 +02:00
parent d25f20a56c
commit d3ac394a43
3 changed files with 28 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ http://mozilla.org/MPL/2.0/.
#include "stdafx.h"
#include "world/TrackSleepers.h"
#include "world/TrackFeatures.h"
#include "world/Track.h"
#include "model/Model3d.h"
#include "model/MdlMngr.h"
@@ -1125,6 +1126,9 @@ std::pair<double, double> panel_off_plane( TTrack &Track ) {
beam_model const *timber_model() {
if( false == track_features::sleepers ) {
return nullptr;
}
return find_model( Global.Sleepers3D, std::string {}, -1.f );
}