From e8c4a019a0700e1ed42b6264ae23f1713aa0eee8 Mon Sep 17 00:00:00 2001 From: Hirek Date: Tue, 7 Jan 2025 12:21:21 +0100 Subject: [PATCH] Add aklvents button --- Train.cpp | 6 ++++++ Train.h | 1 + 2 files changed, 7 insertions(+) diff --git a/Train.cpp b/Train.cpp index f460a309..2dfdf5d8 100644 --- a/Train.cpp +++ b/Train.cpp @@ -7388,6 +7388,11 @@ bool TTrain::Update( double const Deltatime ) btCabActived.Turn(false); } + if (mvControlled->Battery && mvControlled->CabActive == 0) + btAKLVents.Turn(true); + else + btAKLVents.Turn(true); + if( true == lowvoltagepower ) { // McZapkie-141102: SHP i czuwak, TODO: sygnalizacja kabinowa if( mvOccupied->SecuritySystem.is_vigilance_blinking() ) { @@ -10092,6 +10097,7 @@ bool TTrain::initialize_button(cParser &Parser, std::string const &Label, int co { "i-universal8:", btUniversals[ 8 ] }, { "i-universal9:", btUniversals[ 9 ] }, { "i-cabactived:", btCabActived }, + {"i-aklvents:", btAKLVents}, {"i-compressorany:", btCompressors } }; { diff --git a/Train.h b/Train.h index 4e045600..f5c7f10e 100644 --- a/Train.h +++ b/Train.h @@ -772,6 +772,7 @@ public: // reszta może by?publiczna TButton btLampkaRearLeftEndLight; TButton btLampkaRearRightEndLight; TButton btCabActived; + TButton btAKLVents; TButton btCompressors; // lampka pracy jakiejkolwiek sprezarki // other TButton btLampkaMalfunction;