]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Initialize maxclients earlier, fixes #1609
authorTimePath <andrew.hardaker1995@gmail.com>
Thu, 17 Dec 2015 21:48:39 +0000 (08:48 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Thu, 17 Dec 2015 21:48:39 +0000 (08:48 +1100)
qcsrc/client/main.qc

index 2009388dad4c118856345e04ede9c29b7ad29043..4be14ad5ce89f8616e8d15858e76e81072075c58 100644 (file)
@@ -42,6 +42,14 @@ void CSQC_Init()
        LOG_INFOF("^4CSQC Build information: ^1%s\n", WATERMARK);
 #endif
 
+       {
+               int i = 0;
+               for ( ; i < 255; ++i)
+                       if (getplayerkeyvalue(i, "viewentity") == "")
+                               break;
+               maxclients = i;
+       }
+
        // needs to be done so early because of the constants they create
        static_init();
        static_init_late();
@@ -54,14 +62,6 @@ void CSQC_Init()
 
        draw_endBoldFont();
 
-       {
-               int i = 0;
-               for ( ; i < 255; ++i)
-                       if (getplayerkeyvalue(i, "viewentity") == "")
-                               break;
-               maxclients = i;
-       }
-
        //registercommand("hud_configure");
        //registercommand("hud_save");
        //registercommand("menu_action");