From 508a24675a1bc6b79bcb379ee8af27859823690a Mon Sep 17 00:00:00 2001 From: Ilya Krasnow Date: Sun, 12 Dec 2021 03:12:06 +0300 Subject: [PATCH] Additional fix #333 --- lua/autorun/metrostroi.lua | 2 +- lua/metrostroi/cl_trainedit.lua | 2 +- lua/metrostroi/sv_turbostroi_railnetwork.lua | 4 ++-- lua/metrostroi/sv_turbostroi_v2.lua | 6 +++--- lua/metrostroi/systems/sys_81_718_route_number.lua | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lua/autorun/metrostroi.lua b/lua/autorun/metrostroi.lua index 1995bdc..d6514e2 100644 --- a/lua/autorun/metrostroi.lua +++ b/lua/autorun/metrostroi.lua @@ -174,7 +174,7 @@ function Metrostroi.AddSkin(category,name,tbl) if not texture or not texture.defaults then return end for k,v in pairs(texture.defaults) do local id = VGUI[k].ID - print(List:GetOptionData(List:GetSelectedID()),id,VGUI[id],v) + -- print(List:GetOptionData(List:GetSelectedID()),id,VGUI[id],v) if id and VGUI[id] then VGUI[id](v,true) end diff --git a/lua/metrostroi/cl_trainedit.lua b/lua/metrostroi/cl_trainedit.lua index 9599594..1d648d8 100644 --- a/lua/metrostroi/cl_trainedit.lua +++ b/lua/metrostroi/cl_trainedit.lua @@ -284,7 +284,7 @@ local function EditCSEnts() set = set..Format("\tbodygroup = %d,\n",bodygroup) end set = set.."}\n" - print(set) + -- print(set) end,"Print settings","Print LUA part to clipboard and print it") PrSet:Dock(RIGHT) end diff --git a/lua/metrostroi/sv_turbostroi_railnetwork.lua b/lua/metrostroi/sv_turbostroi_railnetwork.lua index 08d02a7..e6f0cce 100644 --- a/lua/metrostroi/sv_turbostroi_railnetwork.lua +++ b/lua/metrostroi/sv_turbostroi_railnetwork.lua @@ -920,7 +920,7 @@ function Metrostroi.Load(name,keep_signs) -- Create paths definition Metrostroi.Paths = {} if true then return end - print(type(TrackLoadedData)) + -- print(type(TrackLoadedData)) for pathID,path in pairs(TrackLoadedData) do local currentPath = { id = pathID } Metrostroi.Paths[pathID] = currentPath @@ -1114,7 +1114,7 @@ function Metrostroi.Load(name,keep_signs) if auto then for k,v in pairs(auto) do local ent = ents.Create("gmod_track_autodrive_plate") - print(k,v,ent) + -- print(k,v,ent) if IsValid(ent) then ent:SetPos(v.Pos) ent:SetAngles(v.Angles) diff --git a/lua/metrostroi/sv_turbostroi_v2.lua b/lua/metrostroi/sv_turbostroi_v2.lua index 1edc9ec..a143098 100644 --- a/lua/metrostroi/sv_turbostroi_v2.lua +++ b/lua/metrostroi/sv_turbostroi_v2.lua @@ -79,10 +79,10 @@ if Turbostroi and not TURBOSTROI then if IsValid(Player(index)) then if value==0 then Player(index):PrintMessage( HUD_PRINTCONSOLE, "--START" ) - print("--START") + -- print("--START") end Player(index):PrintMessage( HUD_PRINTCONSOLE, system ) - print(system) + -- print(system) end end, } @@ -155,7 +155,7 @@ if Turbostroi and not TURBOSTROI then if not IsValid(ply) or not ply:IsSuperAdmin() then return end local train = ply:GetTrain() if IsValid(train) then - print(cmd:sub(1,2),cmd:sub(3,4)) + -- print(cmd:sub(1,2),cmd:sub(3,4)) SendMessage(train,6,cmd:sub(1,255),cmd:sub(256,511),ply:UserID(),0) end end) diff --git a/lua/metrostroi/systems/sys_81_718_route_number.lua b/lua/metrostroi/systems/sys_81_718_route_number.lua index 7002644..d1368d9 100644 --- a/lua/metrostroi/systems/sys_81_718_route_number.lua +++ b/lua/metrostroi/systems/sys_81_718_route_number.lua @@ -59,7 +59,7 @@ else self.Reloaded = true local rn = Format("%03d",self.RouteNumber) - print(self.RouteNumber) + -- print(self.RouteNumber) for i=1,2 do if IsValid(scents["route"..i]) then scents["route"..i]:SetSkin(rn[i])