]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Give a higher priority to g_maxplayer check
authorterencehill <piuntn@gmail.com>
Wed, 31 Aug 2016 14:32:48 +0000 (16:32 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 31 Aug 2016 14:32:48 +0000 (16:32 +0200)
qcsrc/server/client.qc

index 9ab7aea41fd28f8f95a1329f51dcdbe88b66f164..e3981dde42d7596320cae990e6f9769c02a95357 100644 (file)
@@ -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;
 }