X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fnotifications.qc;h=f2195698190f19aa8e7e2aaa64f93c131905929d;hb=6e111c05c5f9a989cbfd0094bccfbe77da3494f6;hp=5145e5340cff8f3a78748bb88c1d107e90ac8e08;hpb=737346fcfbe5912ff5de24c2f22c0dbd894429a6;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index 5145e5340..f21956981 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -69,7 +69,7 @@ string Notification_CheckArgs_TypeName(float net_type, float net_name) { // check supplied type and name for errors string checkargs = ""; - #define CHECKARG_TYPENAME(type) case MSG_##type##: \ + #define CHECKARG_TYPENAME(type) case MSG_##type: \ { if(!net_name || (net_name > NOTIF_##type##_COUNT)) \ { checkargs = sprintf("Improper name: %d!", net_name); } break; } switch(net_type) @@ -1286,7 +1286,7 @@ void Local_Notification_sound( )); #endif - sound( + _sound( world, soundchannel, sprintf( @@ -1550,7 +1550,7 @@ void Local_Notification(int net_type, int net_name, ...count) case MSG_INFO: { - LOG_INFO( + print( Local_Notification_sprintf( notif.nent_string, notif.nent_args, @@ -1756,7 +1756,7 @@ void Read_Notification(float is_new) #ifdef SVQC void Net_Notification_Remove() -{ +{SELFPARAM(); if (!self) { backtrace(sprintf("Net_Notification_Remove() at %f: Missing self!?\n", time)); return; } #ifdef NOTIFICATIONS_DEBUG @@ -1774,7 +1774,7 @@ void Net_Notification_Remove() } float Net_Write_Notification(entity client, int sf) -{ +{SELFPARAM(); if(Notification_ShouldSend(self.nent_broadcast, client, self.nent_client)) { WriteByte(MSG_ENTITY, ENT_CLIENT_NOTIFICATION);