From: Samual Lenks Date: Sat, 15 Dec 2012 11:15:40 +0000 (-0500) Subject: Use the same check in these other places too X-Git-Tag: xonotic-v0.7.0~62^2~23^2~330 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9fe98097ae17c5d9f0299ee200241bee59ccc1f4;p=xonotic%2Fxonotic-data.pk3dir.git Use the same check in these other places too --- diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index fe1aadce2..a98b2915a 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -684,7 +684,7 @@ void Local_Notification(float net_type, float net_name, string s1, string s2, fl { NOTIF_MATCH(name, net_name) CHECK_AUTOCVAR(name) \ { \ if(notif_checkstring(normal)) { print(sprintf(CCR(normal_or_gentle(normal, gentle)), args)); } \ - if(strtolower(icon) != "") { HUD_Notify_Push(icon, hudargs); } \ + if(notif_checkstring(icon)) { HUD_Notify_Push(icon, hudargs); } \ } } MSG_INFO_NOTIFICATIONS #undef MSG_INFO_NOTIF @@ -695,7 +695,7 @@ void Local_Notification(float net_type, float net_name, string s1, string s2, fl #define MSG_CENTER_NOTIF(name,strnum,flnum,args,cpid,durcnt,normal,gentle) \ { NOTIF_MATCH(name, net_name) CHECK_AUTOCVAR(name) \ { \ - centerprint_generic(HANDLE_CPID(cpid), sprintf(CCR(normal_or_gentle(normal, gentle)), args), durcnt); \ + if(notif_checkstring(normal)) { centerprint_generic(HANDLE_CPID(cpid), sprintf(CCR(normal_or_gentle(normal, gentle)), args), durcnt); } \ } } MSG_CENTER_NOTIFICATIONS #undef MSG_CENTER_NOTIF