Skip to content

Commit eb71b34

Browse files
committed
Fix linter warnings
1 parent 91590b0 commit eb71b34

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

entities/entities/lambda_npcmaker.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ local math = math
66
local ents = ents
77
local player = player
88
local IsValid = IsValid
9-
local math_clamp = math.Clamp
109

1110
-- Turn this off when we are sure it is all correct.
1211
local WARN_ON_FRIENDLY_SCALING = true
12+
local SIMULATE_HIGH_PLAYERCOUNT = false
1313

1414
DEFINE_BASECLASS("lambda_entity")
1515
ENT.Base = "lambda_entity"
@@ -184,9 +184,11 @@ function ENT:ShouldScale()
184184
end
185185

186186
local function GetPlayerCount()
187+
if SIMULATE_HIGH_PLAYERCOUNT then
188+
return 35 -- Simulate
189+
end
187190
local actual = player.GetCount()
188-
--return actual
189-
return 35 -- Simulate
191+
return actual
190192
end
191193

192194
-- The officially recommended supported maximum player count for scaling.

0 commit comments

Comments
 (0)