]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
cleanup
authorMartin Taibr <taibr.martin@gmail.com>
Wed, 14 Nov 2018 14:00:15 +0000 (15:00 +0100)
committerMartin Taibr <taibr.martin@gmail.com>
Wed, 14 Nov 2018 14:00:15 +0000 (15:00 +0100)
qcsrc/lib/_all.inc
qcsrc/lib/deglobalization.qh
qcsrc/lib/static.qh
qcsrc/lib/vector.qh

index cd35c3436b26b3e905d1b5a09c315661f908f722..e2dead33b22585ed92bf2ff57c30ed9d5ef49259 100644 (file)
 #include "draw.qh"
 #include "enumclass.qh"
 #include "file.qh"
+#include "float.qh"
 #include "functional.qh"
 #include "i18n.qh"
 #include "intrusivelist.qh"
index 5f5651064a84acd33da189e7b31722ea6da7f31e..96efec5fb7338a281b81d7fc0024a83ffa0c7fbb 100644 (file)
@@ -1,10 +1,11 @@
+#include "lib/float.qh"
 #include "lib/misc.qh"
 #include "lib/static.qh"
 #include "lib/vector.qh"
 
 // These macros wrap functions which use globals so mutation only occurs inside them and is not visible from outside.
-// Functions for which all usages are replaced with these macros can be hidden inside our `*defs.qh` files
-// to prevent anyone from using them accidentally.
+// Functions for which all usages are replaced with these macros can be hidden by #defines inside our `*defs.qh` files
+// to prevent anyone from using them accidentally in the future
 
 // TODO stuff in the engine that uses the v_forward/v_right/v_up globals and is not wrapped yet:
 //  - RF_USEAXIS, addentities, predraw,
index bc456f1cc99d51bcb5736d5d03118dd345c50912..e0ec96b8ec0c43872992e12523329c0be74e8f5d 100644 (file)
@@ -1,8 +1,5 @@
 #pragma once
 
-#include "lib/macro.qh"
-#include "lib/log.qh"
-
 #define GETTIME_REALTIME 1
 #ifdef MENUQC
 float(int tmr) _gettime = #67;
index d49322efbd8a14389ca3afce4fe92e7f36857e1c..ca0e84f67a95b4b8f118eac268d461a64ae6a8a7 100644 (file)
@@ -1,7 +1,5 @@
 #pragma once
 
-#include "lib/float.qh"
-
 noref vector _vlen2;
 #define vlen2(v) (_vlen2 = (v), dotproduct(_vlen2, _vlen2))