From 607abab23817823d3037a5cda3f2d011e9c444b1 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 17 Apr 2020 22:22:49 +1000 Subject: [PATCH] Check joinAllowed again before actually joining, fixes race conditions where players can bypass the player limit --- qcsrc/server/client.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 271c80396..1ded3b3d4 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -2271,7 +2271,8 @@ void ObserverThink(entity this) if(this.flags & FL_SPAWNING) { this.flags &= ~FL_SPAWNING; - Join(this); + if(joinAllowed(this)) + Join(this); return; } } -- 2.39.2