From: terencehill Date: Wed, 31 Aug 2016 14:32:48 +0000 (+0200) Subject: Give a higher priority to g_maxplayer check X-Git-Tag: xonotic-v0.8.2~620^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a08f250b27ca9468928bf3b9e2d04aeb04d7db1d;p=xonotic%2Fxonotic-data.pk3dir.git Give a higher priority to g_maxplayer check --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 9ab7aea41..e3981dde4 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -2008,9 +2008,9 @@ void PrintWelcomeMessage(entity this) bool spawnAllowed(entity this) { if (this.version_mismatch) return false; + if (!nJoinAllowed(this, this)) return false; if (teamplay && lockteams) return false; if (MUTATOR_CALLHOOK(ForbidSpawn, this)) return false; - if (!nJoinAllowed(this, this)) return false; return true; }