]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
That belongs in hud.qh, not my shit
authorSamual Lenks <samual@xonotic.org>
Fri, 22 Feb 2013 01:57:09 +0000 (20:57 -0500)
committerSamual Lenks <samual@xonotic.org>
Fri, 22 Feb 2013 01:57:09 +0000 (20:57 -0500)
qcsrc/client/hud.qc
qcsrc/client/hud.qh
qcsrc/common/notifications.qh

index 5cdc317463f062ddee1ef7b79989fc470103ab4b..8e03fde9d70161452e4588a0e3530f098b5ac462 100644 (file)
@@ -2056,6 +2056,7 @@ void HUD_KillNotify(string s1, string s2, string s3, float type, float msg) // s
                }
        }*/
 }
+
 void HUD_Notify_Push(string icon, string attacker, string victim)
 {
        if(icon != "")
index 0da6ac5d087e5875bc3cc9efa5a66336593b35f6..8ea7c5e812e1b96f8e177b8c8b964a392a8c1b9b 100644 (file)
@@ -340,3 +340,12 @@ switch(id) { \
        case HUD_PANEL_ENGINEINFO: HUD_Panel_UpdatePosSize(engineinfo) break;\
        default: HUD_Panel_UpdatePosSizeForId_Part2(id)\
 }
+
+#define KN_MAX_ENTRIES 10
+
+float kn_index;
+float killnotify_times[KN_MAX_ENTRIES];
+string killnotify_icon[KN_MAX_ENTRIES];
+string killnotify_attackers[KN_MAX_ENTRIES];
+string killnotify_victims[KN_MAX_ENTRIES];
+void HUD_Notify_Push(string icon, string attacker, string victim);
index ee3a4f207466bdcc95c6bb18431a439ca95b59ec..4cc5b0758de3c49ad8d795900df090d8c7de13c1 100644 (file)
@@ -52,16 +52,8 @@ void Local_Notification(float net_type, float net_name, ...count);
 void Local_Notification_Without_VarArgs(float net_type, float net_name, float stringcount, float floatcount, string s1, string s2, string s3, string s4, float f1, float f2, float f3, float f4);
 
 #ifdef CSQC // CLIENT ONLY
-#define KN_MAX_ENTRIES 10
-
-float kn_index;
-float killnotify_times[KN_MAX_ENTRIES];
-string killnotify_icon[KN_MAX_ENTRIES];
-string killnotify_attackers[KN_MAX_ENTRIES];
-string killnotify_victims[KN_MAX_ENTRIES];
-void HUD_Notify_Push(string icon, string attacker, string victim);
 void Read_Notification(float is_new);
-#endif // ifdef CSQC
+#endif
 
 #ifdef SVQC // SERVER ONLY
 #define NOTIF_ONE 1
@@ -80,7 +72,7 @@ void Send_Notification_Legacy_Wrapper(float broadcast, entity client, float net_
 
 void Send_CSQC_Centerprint_Generic(entity e, float id, string s, float duration, float countdown_num);
 void Send_CSQC_Centerprint_Generic_Expire(entity e, float id);
-#endif // ifdef SVQC
+#endif
 
 
 // ====================================