Fix 4-step switch animation

This commit is contained in:
2025-01-07 14:59:12 +01:00
parent 0367eff59d
commit 848f57d817
2 changed files with 5 additions and 4 deletions

View File

@@ -9944,7 +9944,7 @@ bool TMoverParameters::LoadFIZ(std::string chkpath)
result = false;
if (!modernContainOffPos)
modernDimmerState = 1;
modernDimmerState = 2; // jak nie ma opcji wylaczonej to niech sie odpali normalnie
if (!enableModernDimmer)
{
modernDimmerState = 2;

View File

@@ -9683,9 +9683,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