mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 12:29:18 +02:00
Reworked some actions durin cab (de)activation
This commit is contained in:
@@ -2416,6 +2416,9 @@ void TTrain::OnCommand_cabactivationdisable(TTrain *Train, command_data const &C
|
||||
}
|
||||
|
||||
Train->mvOccupied->CabDeactivisation();
|
||||
if ((Train->mvOccupied->LightsPosNo > 0) && (Train->mvOccupied->InactiveCabFlag & activation::redmarkers)) {
|
||||
Train->Dynamic()->SetLights();
|
||||
}
|
||||
}
|
||||
else if (Command.action == GLFW_RELEASE) {
|
||||
if (Train->ggCabActivationButton.type() == TGaugeType::push) {
|
||||
|
||||
Reference in New Issue
Block a user