From 3412a9d342768ebdf8a459c1287c5c89579aaa6d Mon Sep 17 00:00:00 2001
From: terencehill <piuntn@gmail.com>
Date: Wed, 16 Aug 2017 18:44:40 +0200
Subject: [PATCH] Revert "Hide these from game code" as it broke hud_shownames
 and who knows what else

This reverts commit e1fa3eabc8786dd09a95f3bf4ccae3a9c0400d6e.
---
 qcsrc/client/main.qc | 5 +++++
 qcsrc/lib/_all.inc   | 8 +-------
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc
index 323ebb3516..64b340622a 100644
--- a/qcsrc/client/main.qc
+++ b/qcsrc/client/main.qc
@@ -108,6 +108,11 @@ 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");
diff --git a/qcsrc/lib/_all.inc b/qcsrc/lib/_all.inc
index d8f07455a2..4da78f1444 100644
--- a/qcsrc/lib/_all.inc
+++ b/qcsrc/lib/_all.inc
@@ -250,13 +250,7 @@ void make_safe_for_remove(entity this);
 
 #ifdef CSQC
 	void _CSQC_Init();
-	void CSQC_Init()
-	{
-		static_init();
-		static_init_late();
-		static_init_precache();
-		if (_CSQC_Init) _CSQC_Init();
-	}
+	void CSQC_Init() { if (_CSQC_Init) _CSQC_Init(); }
 	#define CSQC_Init _CSQC_Init
 
 	void _CSQC_Shutdown();
-- 
2.39.5