Hide these from game code
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 13 Aug 2017 11:55:35 +0000 (21:55 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 13 Aug 2017 11:55:35 +0000 (21:55 +1000)
qcsrc/client/main.qc
qcsrc/lib/_all.inc

index 64b3406..323ebb3 100644 (file)
@@ -108,11 +108,6 @@ void CSQC_Init()
                maxclients = i;
        }
 
-       // needs to be done so early because of the constants they create
-       static_init();
-       static_init_late();
-       static_init_precache();
-
        binddb = db_create();
        tempdb = db_create();
        ClientProgsDB = db_load("client.db");
index 4da78f1..d8f0745 100644 (file)
@@ -250,7 +250,13 @@ void make_safe_for_remove(entity this);
 
 #ifdef CSQC
        void _CSQC_Init();
-       void CSQC_Init() { if (_CSQC_Init) _CSQC_Init(); }
+       void CSQC_Init()
+       {
+               static_init();
+               static_init_late();
+               static_init_precache();
+               if (_CSQC_Init) _CSQC_Init();
+       }
        #define CSQC_Init _CSQC_Init
 
        void _CSQC_Shutdown();