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

Merge pull request #237 from MaSzyna-EU07/feat/track-uneven

Feat/track uneven
This commit is contained in:
2026-11-07 11:18:49 +00:00
committed by GitHub
19 changed files with 2188 additions and 55 deletions

View File

@@ -410,7 +410,10 @@ private:
double distance; // distance to rail joint
double offset; // axle offset from centre of the vehicle
sound_source clatter; // clatter emitter
bool atjoints { false }; // distance comes from TTrack::rail_phase
};
// whether the axle has just passed a rail joint. On a track with dipping joints it goes by them, elsewhere the axle counts a rail off itself
bool axle_passed_joint( axle_sounds &Axle, double const Move, int const Direction ) const;
struct powertrain_sounds {
sound_source inverter { sound_placement::engine };