16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 13:59:19 +02:00

Improve pantograph selector

- A new parameter has been added to .fiz file format, in the Switches: section:
  - PantographPresetDefault [0] - The 0-based index of a pantograph preset that should be chosen upon the vehicle creation. 0 by default mimicks the current behavior.

- Fixed the selected pantograph configuration not being respected until the configuration has been changed.
This commit is contained in:
jakubg1
2024-03-13 03:25:19 +01:00
parent c9ccdda806
commit 13d9a91632
4 changed files with 11 additions and 1 deletions

View File

@@ -11100,6 +11100,7 @@ void TMoverParameters::LoadFIZ_Switches( std::string const &Input ) {
std::remove( std::begin( presets ), std::end( presets ), '|' ),
std::end( presets ) );
}
extract_value( PantsPresetDefault, "PantographPresetDefault", Input, "" );
}
void TMoverParameters::LoadFIZ_MotorParamTable( std::string const &Input ) {