Fix some other things
authorSamual Lenks <samual@xonotic.org>
Mon, 26 Aug 2013 03:08:33 +0000 (23:08 -0400)
committerSamual Lenks <samual@xonotic.org>
Mon, 26 Aug 2013 03:08:33 +0000 (23:08 -0400)
qcsrc/common/notifications.qc
qcsrc/common/notifications.qh

index 4693dfb..c2420d4 100644 (file)
@@ -1887,8 +1887,13 @@ void Send_Notification(
                                "Check the definition and function call for accuracy...?\n"
                        ),
                        sprintf(
+                               #ifdef NOTIFICATIONS_DEBUG
                                "%s, '%s', %s, %s",
                                Get_Notif_BroadcastName(broadcast),
+                               #else
+                               "%d, '%s', %s, %s",
+                               broadcast,
+                               #endif
                                client.classname,
                                Get_Notif_TypeName(net_type),
                                notif.nent_name
@@ -1908,8 +1913,13 @@ void Send_Notification(
                                "Check the definition and function call for accuracy...?\n"
                        ),
                        sprintf(
+                               #ifdef NOTIFICATIONS_DEBUG
                                "%s, '%s', %s, %s",
                                Get_Notif_BroadcastName(broadcast),
+                               #else
+                               "%d, '%s', %s, %s",
+                               broadcast,
+                               #endif
                                client.classname,
                                Get_Notif_TypeName(net_type),
                                notif.nent_name
index ad5cafc..1228a9c 100644 (file)
@@ -101,9 +101,6 @@ float prev_soundtime;
 #define NOTIF_ALL 5
 #define NOTIF_ALL_EXCEPT 6
 
-#define IFSTR(num) ((num < notif.nent_stringcount) ? ...(num, string) : "")
-#define IFFL(num) ((((notif.nent_stringcount-1) + num) < count) ? ...(((notif.nent_stringcount-1) + num), float) : 0)
-
 void Kill_Notification(
        float broadcast, entity client,
        float net_type, float net_name);