forked from Not/srb2k-leaderboard
Dont iterate players if afk is disabled
This commit is contained in:
parent
e3c870eefd
commit
5790a3c020
@ -1146,7 +1146,8 @@ local function think()
|
|||||||
end
|
end
|
||||||
|
|
||||||
if disable then
|
if disable then
|
||||||
if cv_afk.value and ingame() > 1 then
|
if cv_afk.value then
|
||||||
|
if ingame() > 1 then
|
||||||
for p in players.iterate do
|
for p in players.iterate do
|
||||||
if p.valid and not p.spectator and not p.exiting and p.lives > 0 then
|
if p.valid and not p.spectator and not p.exiting and p.lives > 0 then
|
||||||
if p.cmd.buttons then
|
if p.cmd.buttons then
|
||||||
@ -1171,6 +1172,7 @@ local function think()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
help = true
|
help = true
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user