From: Samual Lenks Date: Tue, 5 Feb 2013 03:39:02 +0000 (-0500) Subject: Fix'd X-Git-Tag: xonotic-v0.7.0~62^2~23^2~276 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=098f27a2add4aca8b86ad01e7859c70e150e1ab5;p=xonotic%2Fxonotic-data.pk3dir.git Fix'd --- diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index 857cada80..dd899d00f 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -161,23 +161,6 @@ void HUD_Notify_Push(string icon, string attacker, string victim) killnotify_victims[kn_index] = strzone(victim); } } - -void backtrace(string msg) // TODO: MOVE TO UTIL.QC -{ - float dev, war; - dev = cvar("developer"); - war = cvar("prvm_backtraceforwarnings"); - cvar_set("developer", "1"); - cvar_set("prvm_backtraceforwarnings", "1"); - print("\n"); - print("--- CUT HERE ---\nWARNING: "); - print(msg); - print("\n"); - remove(world); // isn't there any better way to cause a backtrace? - print("\n--- CUT UNTIL HERE ---\n"); - cvar_set("developer", ftos(dev)); - cvar_set("prvm_backtraceforwarnings", ftos(war)); -} #endif // ifdef CSQC void Local_Notification(float net_type, float net_name, ...count) diff --git a/qcsrc/common/notifications.qh b/qcsrc/common/notifications.qh index 01c94967b..8230905b1 100644 --- a/qcsrc/common/notifications.qh +++ b/qcsrc/common/notifications.qh @@ -117,7 +117,6 @@ 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 backtrace(string msg); void Read_Notification(float is_new); #endif // ifdef CSQC