From 39456788f5664f2c7d2cd8fb07ab192f688f8c0a Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Thu, 31 Jan 2013 05:55:54 -0500 Subject: [PATCH] Some other stuffz... --- qcsrc/common/notifications.qc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index 3773b890f..45de6377a 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -334,7 +334,7 @@ void Read_Notification(float is_new) #ifdef SVQC float Write_Notification(entity client, float sf) { - float send; + float i, send; switch(self.nent_broadcast) { @@ -377,9 +377,6 @@ void Send_Notification(float broadcast, entity client, float net_type, float net if((stringcount + floatcount) > count) { backtrace(strcat("Not enough arguments for Send_Notification! ", strcat("stringcount(", ftos(stringcount), ") + floatcount(", ftos(floatcount), "),"), " > count(", ftos(count), ").\nCheck the notification definition and the function call for accuracy...?\n")); return; } else if((stringcount + floatcount) < count) { backtrace(strcat("Too many arguments for Send_Notification! ", strcat("stringcount(", ftos(stringcount), ") + floatcount(", ftos(floatcount), "),"), " < count(", ftos(count), ").\nCheck the notification definition and the function call for accuracy...?\n")); return; } - //if(Count_Proper_Strings(NO_STR_ARG, s1, s2) > stringcount) { backtrace("Too many string arguments for notification!\n"); return; } - //if(Count_Proper_Floats(NO_FL_ARG, f1, f2, f3) > floatcount) { backtrace("Too many float arguments for notification!\n"); return; } - entity notif = spawn(); notif.nent_broadcast = broadcast; notif.nent_client = client; @@ -407,7 +404,7 @@ void Send_Notification_Without_VarArgs(float broadcast, entity client, float net Send_Notification(broadcast, client, net_type, net_name); // some notifications don't have any arguments at all } -void Send_Notification_Legacy_Wrapper(entity client, float broadcast, float net_type, float net_name, string s1, string s2, float f1, float f2, float f3) +void Send_Notification_Legacy_Wrapper(float broadcast, entity client, float net_type, float net_name, string s1, string s2, float f1, float f2, float f3) { float stringcount = stof(Get_Field_Value(F_STRNUM, net_type, net_name)); float floatcount = stof(Get_Field_Value(F_FLNUM, net_type, net_name)); -- 2.39.2