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

Fix after merge

This commit is contained in:
Królik Uszasty
2022-04-10 00:53:52 +02:00
parent cdca4f108d
commit a1a5d1d9e1
4 changed files with 165 additions and 7 deletions

View File

@@ -102,23 +102,23 @@ TController::cue_action( driver_hint const Action, float const Actionparameter )
break;
}
// battery
case locale::string::driver_hint_cabactivation: {
case driver_hint::cabactivation: {
if (AIControllFlag && mvOccupied->Power24vIsAvailable) {
mvOccupied->CabActivisation();
CheckVehicles();
}
remove_hint( locale::string::driver_hint_cabdeactivation );
remove_hint( driver_hint::cabdeactivation );
hint(
Action,
[this](float const Parameter) -> bool {
return ( ( mvOccupied->AutomaticCabActivation ) || ( mvOccupied->IsCabMaster() ) ); } );
break;
}
case locale::string::driver_hint_cabdeactivation: {
case driver_hint::cabdeactivation: {
if (AIControllFlag) {
mvOccupied->CabDeactivisation();
}
remove_hint( locale::string::driver_hint_cabactivation );
remove_hint( driver_hint::cabactivation );
hint(
Action,
[this](float const Parameter) -> bool {