mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Add working light to indicate any active compressor
i-compressorany: in mmd
This commit is contained in:
@@ -7367,6 +7367,12 @@ bool TTrain::Update( double const Deltatime )
|
||||
btLampkaPoslizg.Turn( false );
|
||||
}
|
||||
|
||||
// Lampka pracujacej sprezacki
|
||||
if (mvControlled->CompressorFlag || mvOccupied->CompressorFlag)
|
||||
btCompressors.Turn(true);
|
||||
else
|
||||
btCompressors.Turn(false);
|
||||
|
||||
// Lampka aktywowanej kabiny
|
||||
if (mvControlled->CabActive != 0) {
|
||||
btCabActived.Turn(true);
|
||||
@@ -10079,7 +10085,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-compressor:", btCompressors }
|
||||
};
|
||||
{
|
||||
auto lookup = lights.find( Label );
|
||||
|
||||
Reference in New Issue
Block a user