1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

FIX DOORS ORIENTATION (720, 722)

This commit is contained in:
Hellss
2022-07-25 02:37:27 +03:00
parent 3a299c9ea0
commit e422b76646
2 changed files with 4 additions and 4 deletions

View File

@@ -620,8 +620,8 @@ if SERVER then
local orientation = train.Orientation
Train:SetNW2Bool("VityazWagOr"..i,orientation)
for d=1,4 do
Train:SetNW2Bool("VityazDoor"..d.."L"..i,train["Door"..(orientation and d or d+4).."Closed"])
Train:SetNW2Bool("VityazDoor"..d.."R"..i,train["Door"..(orientation and d+4 or d).."Closed"])
Train:SetNW2Bool("VityazDoor"..d.."L"..i,train["Door"..(orientation and d or 9-d).."Closed"])
Train:SetNW2Bool("VityazDoor"..d.."R"..i,train["Door"..(orientation and d+4 or 5-d).."Closed"])
end
end
elseif self.State2 == 6 then