mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
gmod_subway_base.
Добавлена очистка в таблице FailSim
This commit is contained in:
@@ -303,6 +303,11 @@ function ENT:GetWagonNumber()
|
||||
end
|
||||
-- Remove entity
|
||||
function ENT:OnRemove()
|
||||
-- Remove FailSim objects
|
||||
for k,v in pairs(self.Systems) do
|
||||
if FailSim.Objects[v] then FailSim.Objects[v] = nil end
|
||||
end
|
||||
|
||||
-- Remove all linked objects
|
||||
constraint.RemoveAll(self)
|
||||
if self.TrainEntities then
|
||||
|
||||
Reference in New Issue
Block a user