i-edenabled light

This commit is contained in:
2025-02-14 20:58:53 +01:00
parent ecebc70814
commit a96d3d352f
2 changed files with 12 additions and 1 deletions

View File

@@ -7435,6 +7435,12 @@ bool TTrain::Update( double const Deltatime )
else
btCompressors.Turn(false);
// Lampka zezwolenia na hamowanie ED
if (mvControlled->EpFuse)
btEDenabled.Turn(true);
else
btEDenabled.Turn(false);
// Lampka aktywowanej kabiny
if (mvControlled->CabActive != 0) {
btCabActived.Turn(true);
@@ -7448,6 +7454,9 @@ bool TTrain::Update( double const Deltatime )
else
btAKLVents.Turn(false);
if ()
if( true == lowvoltagepower ) {
// McZapkie-141102: SHP i czuwak, TODO: sygnalizacja kabinowa
if( mvOccupied->SecuritySystem.is_vigilance_blinking() ) {
@@ -10164,7 +10173,8 @@ bool TTrain::initialize_button(cParser &Parser, std::string const &Label, int co
{ "i-universal9:", btUniversals[ 9 ] },
{ "i-cabactived:", btCabActived },
{"i-aklvents:", btAKLVents},
{"i-compressorany:", btCompressors }
{"i-compressorany:", btCompressors },
{"i-edenabled", btEDenabled }
};
{
auto lookup = lights.find( Label );