build 210424. soundproofing enhancement, battery sound, heating command propagation, memory cell command retrieval logic enhancement, coupling mode logic enhancement, motor overload relay threshold cab control animation fix, cab control fallback sound activation fixes,

This commit is contained in:
tmj-fstate
2021-04-24 19:37:16 +02:00
parent 66bd63336b
commit 3775d20e0c
17 changed files with 276 additions and 112 deletions

View File

@@ -1147,24 +1147,24 @@ TController::cue_action( locale::string const Action, float const Actionparamete
// consist heating
case locale::string::driver_hint_consistheatingon: {
if( AIControllFlag ) {
mvControlling->HeatingAllow = true;
mvOccupied->HeatingSwitch( true );
}
remove_hint( locale::string::driver_hint_consistheatingoff );
hint(
Action,
[this](float const Parameter) -> bool {
return ( mvControlling->HeatingAllow == true ); } );
return ( mvOccupied->HeatingAllow == true ); } );
break;
}
case locale::string::driver_hint_consistheatingoff: {
if( AIControllFlag ) {
mvControlling->HeatingAllow = false;
mvOccupied->HeatingSwitch( false );
}
remove_hint( locale::string::driver_hint_consistheatingon );
hint(
Action,
[this](float const Parameter) -> bool {
return ( mvControlling->HeatingAllow == false ); } );
return ( mvOccupied->HeatingAllow == false ); } );
break;
}