From: Samual Lenks Date: Mon, 7 Jan 2013 20:26:34 +0000 (-0500) Subject: Fix a check for MSG_BROADCAST and MSG_ONE X-Git-Tag: xonotic-v0.7.0~62^2~23^2~312 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ab91bdd7aa71b3cf78101ec6086bbf4609e8beea;p=xonotic%2Fxonotic-data.pk3dir.git Fix a check for MSG_BROADCAST and MSG_ONE --- diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index b4b38e870..9e6f51a5d 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -779,11 +779,10 @@ void Read_Notification(void) #ifdef SVQC void Send_Notification(entity client, float broadcast, float net_type, float net_name, string s1, string s2, float f1, float f2, float f3) { - if(broadcast && net_type && net_name) + if((broadcast == MSG_BROADCAST || broadcast == MSG_ONE) && net_type && net_name) { dprint("Send_Notification(", ftos(broadcast), ", ", ftos(net_type), ", ", Get_Field_Value(F_NAME, net_type, net_name), strcat(", ", s1, ", ", s2, ", ", ftos(f1), strcat(", ", ftos(f2), ", ", ftos(f3), ");\n"))); - print("hmm... ", ftos(net_name), "\n"); float stringcount = stof(Get_Field_Value(F_STRNUM, net_type, net_name)); float floatcount = stof(Get_Field_Value(F_FLNUM, net_type, net_name));