prevent netvar changes in replays
This commit is contained in:
parent
5cecda05f1
commit
8a6161a1e1
@ -1264,6 +1264,7 @@ local function think()
|
|||||||
p.afkTime = leveltime
|
p.afkTime = leveltime
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not replayplayback then
|
||||||
if leveltime > PREVENT_JOIN_TIME and p.afkTime + AFK_TIMEOUT > leveltime then
|
if leveltime > PREVENT_JOIN_TIME and p.afkTime + AFK_TIMEOUT > leveltime then
|
||||||
if cv_teamchange.value then
|
if cv_teamchange.value then
|
||||||
allowJoin(false)
|
allowJoin(false)
|
||||||
@ -1273,6 +1274,7 @@ local function think()
|
|||||||
allowJoin(true)
|
allowJoin(true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if p.laps >= mapheaderinfo[gamemap].numlaps and timeFinished == 0 then
|
if p.laps >= mapheaderinfo[gamemap].numlaps and timeFinished == 0 then
|
||||||
timeFinished = p.realtime
|
timeFinished = p.realtime
|
||||||
|
Loading…
x
Reference in New Issue
Block a user