From 4550feecc14a871e2fa351bf6bec371ef4a80433 Mon Sep 17 00:00:00 2001 From: TimePath Date: Fri, 18 Dec 2015 08:48:39 +1100 Subject: [PATCH] Initialize maxclients earlier, fixes #1609 --- qcsrc/client/main.qc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc index 2009388da..4be14ad5c 100644 --- a/qcsrc/client/main.qc +++ b/qcsrc/client/main.qc @@ -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"); -- 2.39.2