mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-21 12:05:01 +01:00
fix(track): what Sonar reports on the unevenness
The blockers are in the EP brake of a vehicle, older than this work: its arrays made with new[] are vectors now, which also removes the deletes. - The caches of the unevenness of a track are no longer mutable: what fills them isn't const any more. - TSegment gets back to RaPositionGet in one piece, with what the path has to do with the others in one struct. - Less nesting in the group of switches and in the fields of the editor, nested conditionals written out, and the attribute is read from a string_view. A test no longer counts in floating point. No change in behaviour.
This commit is contained in:
@@ -405,7 +405,7 @@ private:
|
||||
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 );
|
||||
bool axle_passed_joint( axle_sounds &Axle, double const Move, int const Direction ) const;
|
||||
|
||||
struct powertrain_sounds {
|
||||
sound_source inverter { sound_placement::engine };
|
||||
|
||||
Reference in New Issue
Block a user