mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
Fix c# style code
This commit is contained in:
@@ -200,10 +200,10 @@ function ENT:Initialize()
|
|||||||
self.PostInitalized = true
|
self.PostInitalized = true
|
||||||
|
|
||||||
self.Controllers = nil
|
self.Controllers = nil
|
||||||
self.OccupiedOld = false;
|
self.OccupiedOld = false
|
||||||
self.ControllerLogicCheckOccupied = false;
|
self.ControllerLogicCheckOccupied = false
|
||||||
self.ControllerLogicOverride325Hz = false;
|
self.ControllerLogicOverride325Hz = false
|
||||||
self.Override325Hz = false;
|
self.Override325Hz = false
|
||||||
end
|
end
|
||||||
|
|
||||||
function ENT:PreInitalize()
|
function ENT:PreInitalize()
|
||||||
@@ -349,7 +349,7 @@ function ENT:GetRS()
|
|||||||
if self.OverrideTrackOccupied or not self.TwoToSix or not self.ARSSpeedLimit then return false end
|
if self.OverrideTrackOccupied or not self.TwoToSix or not self.ARSSpeedLimit then return false end
|
||||||
--if self.ARSSpeedLimit == 1 or self.ARSSpeedLimit == 2 then return false end
|
--if self.ARSSpeedLimit == 1 or self.ARSSpeedLimit == 2 then return false end
|
||||||
if self.ARSSpeedLimit ~= 0 and self.ARSSpeedLimit== 2 then return false end
|
if self.ARSSpeedLimit ~= 0 and self.ARSSpeedLimit== 2 then return false end
|
||||||
if (self.ControllerLogic and self.ControllerLogicOverride325Hz) then return self.Override325Hz end
|
if self.ControllerLogic and self.ControllerLogicOverride325Hz then return self.Override325Hz end
|
||||||
return (self.ARSSpeedLimit > 4 or self.ARSSpeedLimit == 4 and self.Approve0) and (not self.ARSNextSpeedLimit or self.ARSNextSpeedLimit >= self.ARSSpeedLimit)
|
return (self.ARSSpeedLimit > 4 or self.ARSSpeedLimit == 4 and self.Approve0) and (not self.ARSNextSpeedLimit or self.ARSNextSpeedLimit >= self.ARSSpeedLimit)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -750,4 +750,4 @@ net.Receive("metrostroi-signal", function(_, ply)
|
|||||||
ent:SendUpdate(ply)
|
ent:SendUpdate(ply)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Metrostroi.OptimisationPatch()
|
Metrostroi.OptimisationPatch()
|
||||||
|
|||||||
Reference in New Issue
Block a user