Skip to content

Commit 2a25a52

Browse files
committed
ПА маркер
Фикс коллбека cvar
1 parent 9efdfbc commit 2a25a52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/entities/gmod_track_pa_marker/cl_init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ function ENT:DrawTranslucent(flags)
2020
end
2121

2222
cvars.AddChangeCallback("metrostroi_drawsignaldebug", function (name, oldValue, newValue)
23+
local noDraw = not C_SignalDebug:GetBool()
2324
for _,ent in pairs(ents.FindByClass("gmod_track_pa_marker")) do
24-
ent:SetNoDraw(newValue == 0)
25+
ent:SetNoDraw(noDraw)
2526
end
2627
end)

0 commit comments

Comments
 (0)