forked from Not/srb2k-leaderboard
prevent netvar changes in replays
This commit is contained in:
parent
5cecda05f1
commit
8a6161a1e1
@ -1264,13 +1264,15 @@ local function think()
|
|||||||
p.afkTime = leveltime
|
p.afkTime = leveltime
|
||||||
end
|
end
|
||||||
|
|
||||||
if leveltime > PREVENT_JOIN_TIME and p.afkTime + AFK_TIMEOUT > leveltime then
|
if not replayplayback then
|
||||||
if cv_teamchange.value then
|
if leveltime > PREVENT_JOIN_TIME and p.afkTime + AFK_TIMEOUT > leveltime then
|
||||||
allowJoin(false)
|
if cv_teamchange.value then
|
||||||
end
|
allowJoin(false)
|
||||||
elseif p.afkTime + AFK_TIMEOUT < leveltime then
|
end
|
||||||
if not cv_teamchange.value then
|
elseif p.afkTime + AFK_TIMEOUT < leveltime then
|
||||||
allowJoin(true)
|
if not cv_teamchange.value then
|
||||||
|
allowJoin(true)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user