]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Move this stuff too
authorSamual Lenks <samual@xonotic.org>
Tue, 25 Sep 2012 20:19:44 +0000 (16:19 -0400)
committerSamual Lenks <samual@xonotic.org>
Tue, 25 Sep 2012 20:19:44 +0000 (16:19 -0400)
qcsrc/common/notifications.qc

index c1fa98e82a2e4956c6ea28e214e8216f6bc5ca31..a75f4baba2387c5b473bb2d095ddd53b38a29c90 100644 (file)
@@ -125,6 +125,9 @@ MSG_WEAPON_NOTIFICATIONS
 #define WRITESPECTATABLE(msg,statement) if(msg == MSG_ONE) { WRITESPECTATABLE_MSG_ONE(statement); } else statement float WRITESPECTATABLE_workaround = 0
 #endif
 
+#define NORMAL_OR_GENTLE(normal,gentle) ((autocvar_cl_gentle || autocvar_cl_gentle_messages) ? gentle : normal)
+#define HANDLE_CPID(cpid) ((min(256, cpid) == NO_CPID) ? FALSE : cpid)
+
 string CCR(string input) // color code replace, place inside of sprintf and parse the string
 {
        input = strreplace("^F1", "^3", input);
@@ -147,9 +150,6 @@ string CCR(string input) // color code replace, place inside of sprintf and pars
 // =========================
 
 #ifdef CSQC
-#define NORMAL_OR_GENTLE(normal,gentle) ((autocvar_cl_gentle || autocvar_cl_gentle_messages) ? gentle : normal)
-#define HANDLE_CPID(cpid) ((min(256, cpid) == NO_CPID) ? FALSE : cpid)
-
 void Read_Notification()
 {
        float net_type = ReadByte();