mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 13:59:19 +02:00
shuntfield sound for vehicles with diesel-electric engine, sound positioning support for cab controls, minor AI tweaks and bug fixes
This commit is contained in:
@@ -4850,6 +4850,8 @@ double TMoverParameters::TractionForce( double dt ) {
|
||||
else {
|
||||
if( AutoRelayFlag ) {
|
||||
|
||||
auto const shuntfieldstate { ScndCtrlPos };
|
||||
|
||||
switch( RelayType ) {
|
||||
|
||||
case 0: {
|
||||
@@ -4995,6 +4997,10 @@ double TMoverParameters::TractionForce( double dt ) {
|
||||
break;
|
||||
}
|
||||
} // switch RelayType
|
||||
|
||||
if( ScndCtrlPos != shuntfieldstate ) {
|
||||
SetFlag( SoundFlag, ( sound::relay | sound::shuntfield ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user