Fix headlights dimmer off position from different end

This commit is contained in:
2025-09-23 20:36:08 +02:00
parent 7463ceb99c
commit eff9fe8842

View File

@@ -7396,7 +7396,7 @@ void TDynamicObject::RaLightsSet(int head, int rear)
//MoverParameters->iLights[vehicleend] &= 0 | light::rearendsignals; // zostawiamy tylko tabliczki jesli sa
HighBeamLights = false;
DimHeadlights = false;
switch (vehicleend)
switch (MoverParameters->CabActive)
{
case end::front:
HeadlightsAoff = true;
@@ -7410,7 +7410,7 @@ void TDynamicObject::RaLightsSet(int head, int rear)
}
else
{
switch (vehicleend)
switch (MoverParameters->CabActive)
{
case end::front:
HeadlightsAoff = false;