X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fnotifications.qc;h=600ddaa1b3237301833480c7ef92cb901333b1a0;hb=21307f327df5609b82d90496c1c6156d636d1c8d;hp=f2195698190f19aa8e7e2aaa64f93c131905929d;hpb=541c234fd442f5857209128fc7a907e406f4be03;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index f21956981..600ddaa1b 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -1,8 +1,6 @@ #if defined(CSQC) #elif defined(MENUQC) #elif defined(SVQC) - #include "../dpdefs/progsdefs.qh" - #include "../dpdefs/dpextensions.qh" #include "constants.qh" #include "teams.qh" #include "../server/autocvars.qh" @@ -1773,8 +1771,8 @@ void Net_Notification_Remove() remove(self); } -float Net_Write_Notification(entity client, int sf) -{SELFPARAM(); +bool Net_Write_Notification(entity this, entity client, int sf) +{ if(Notification_ShouldSend(self.nent_broadcast, client, self.nent_client)) { WriteByte(MSG_ENTITY, ENT_CLIENT_NOTIFICATION);