mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 22:09:19 +02:00
Merge pull request #13 from Unofficial-MaSzyna-Developement/high-beam-lights
Fix 4-step switch animation
This commit is contained in:
@@ -9942,7 +9942,7 @@ bool TMoverParameters::LoadFIZ(std::string chkpath)
|
|||||||
result = false;
|
result = false;
|
||||||
|
|
||||||
if (!modernContainOffPos)
|
if (!modernContainOffPos)
|
||||||
modernDimmerState = 1;
|
modernDimmerState = 2; // jak nie ma opcji wylaczonej to niech sie odpali normalnie
|
||||||
if (!enableModernDimmer)
|
if (!enableModernDimmer)
|
||||||
{
|
{
|
||||||
modernDimmerState = 2;
|
modernDimmerState = 2;
|
||||||
|
|||||||
@@ -9732,9 +9732,10 @@ void TTrain::set_cab_controls( int const Cab ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ggModernLightDimSw.SubModel != nullptr) {
|
if (ggModernLightDimSw.SubModel != nullptr) {
|
||||||
ggModernLightDimSw.PutValue(
|
if (mvOccupied->modernContainOffPos)
|
||||||
mvOccupied->modernDimmerState
|
ggModernLightDimSw.PutValue(mvOccupied->modernDimmerState);
|
||||||
);
|
else
|
||||||
|
ggModernLightDimSw.PutValue(mvOccupied->modernDimmerState - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// motor connectors
|
// motor connectors
|
||||||
|
|||||||
Reference in New Issue
Block a user