16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 08:49:18 +02:00

Merge pull request #13 from Unofficial-MaSzyna-Developement/high-beam-lights

Fix 4-step switch animation
This commit is contained in:
2025-01-07 14:59:57 +01:00
committed by GitHub
2 changed files with 5 additions and 4 deletions

View File

@@ -9732,9 +9732,10 @@ void TTrain::set_cab_controls( int const Cab ) {
}
if (ggModernLightDimSw.SubModel != nullptr) {
ggModernLightDimSw.PutValue(
mvOccupied->modernDimmerState
);
if (mvOccupied->modernContainOffPos)
ggModernLightDimSw.PutValue(mvOccupied->modernDimmerState);
else
ggModernLightDimSw.PutValue(mvOccupied->modernDimmerState - 1);
}
// motor connectors