]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 64b340622a16a2ee2a3ea5f87d98efb97b1d3ea6..323ebb3516147bce98cc49f0d8286c2ec85324b1 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 4da78f1444eb27b397d926442c7a153012adf01e..d8f07455a28c7766065c6b6e0737020a4758a5e4 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();