]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Check joinAllowed again before actually joining, fixes race conditions where players...
authorMario <mario.mario@y7mail.com>
Fri, 17 Apr 2020 12:22:49 +0000 (22:22 +1000)
committerMario <mario.mario@y7mail.com>
Fri, 17 Apr 2020 12:22:49 +0000 (22:22 +1000)
qcsrc/server/client.qc

index 271c803961bbd8cd6b4d28bcc065150018fea1d4..1ded3b3d44a3f792864310dbb21159c766687eb0 100644 (file)
@@ -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;
                        }
                }