]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/net_notice.qc
Rename defs to qh
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / net_notice.qc
index caaae8b4967bfa70c214d998ab05efc5aeacb94b..946d16673a762febfd8cc242955f871115b80e1e 100644 (file)
@@ -1,3 +1,16 @@
+#if defined(CSQC)
+    #include "../dpdefs/csprogsdefs.qh"
+    #include "../client/defs.qh"
+    #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+    #include "../dpdefs/progsdefs.qh"
+    #include "../dpdefs/dpextensions.qh"
+    #include "constants.qh"
+    #include "net_notice.qh"
+    #include "../server/defs.qh"
+#endif
+
 #ifdef SVQC
 void sv_notice_join_think()
 {
@@ -7,7 +20,7 @@ void sv_notice_join_think()
     {
         float i;
         for(i = argc - 1; i >= 0; --i)
-            sv_notice_to(self.owner, argv(i), autocvar_sv_join_notices_time, FALSE);
+            sv_notice_to(self.owner, argv(i), autocvar_sv_join_notices_time, false);
     }
     remove(self);
 }
@@ -64,11 +77,11 @@ float cl_notice_run()
 {
     entity _notes;
     string _notice;
-    float m = FALSE;
+    float m = false;
 
     _notes = findchain(classname, "sv_notice");
     if(!_notes)
-        return FALSE;
+        return false;
     #define M1 30
     #define M2 10
 
@@ -96,7 +109,7 @@ float cl_notice_run()
         OUT(_notice, 16);
 
         if(_notes.skin)
-            m = TRUE;
+            m = true;
 
         if(_notes.alpha <= time)
         {