From b57b9c49c6d166eb9f6196d86751de063bc8f29f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=B3lik=20Uszasty?= Date: Sun, 3 Apr 2022 20:28:12 +0200 Subject: [PATCH] Fixed activation for AutomaticCabActivation --- Driver.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Driver.cpp b/Driver.cpp index 2ea64649..fa343445 100644 --- a/Driver.cpp +++ b/Driver.cpp @@ -6000,7 +6000,8 @@ TController::determine_consist_state() { { cue_action( locale::string::driver_hint_cabactivation ); } - else if ((mvOccupied->CabActive == -mvOccupied->CabOccupied) || (!mvOccupied->CabMaster) || (!mvOccupied->Power24vIsAvailable)) + else if (!mvOccupied->AutomaticCabActivation + && ( (mvOccupied->CabActive == -mvOccupied->CabOccupied) || (!mvOccupied->CabMaster) || (!mvOccupied->Power24vIsAvailable) ) ) { cue_action( locale::string::driver_hint_cabdeactivation ); }