16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 22:09: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:
tmj-fstate
2018-06-01 23:23:58 +02:00
parent 89e1f25556
commit 1d0cfdb8b1
4 changed files with 77 additions and 52 deletions

View File

@@ -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;