From: Samual Lenks Date: Sun, 3 Mar 2013 21:51:35 +0000 (-0500) Subject: Use the IS_SPEC macros for these X-Git-Tag: xonotic-v0.7.0~62^2~23^2~18 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=f9ecc502ab2b0349d46c6a3a96b18905fe1aef7a Use the IS_SPEC macros for these --- diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index 67e6067560..e9b0c210ef 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -1114,7 +1114,7 @@ float Net_Write_Notification(entity client, float sf) (client == self.nent_client) || ( - (client.classname == STR_SPECTATOR) + IS_SPEC(client) && (client.enemy == self.nent_client) ) @@ -1132,7 +1132,7 @@ float Net_Write_Notification(entity client, float sf) (client.team == self.nent_client.team) || ( - (client.classname == STR_SPECTATOR) + IS_SPEC(client) && (client.enemy.team == self.nent_client.team) ) @@ -1148,7 +1148,7 @@ float Net_Write_Notification(entity client, float sf) (client.team == self.nent_client.team) || ( - (client.classname == STR_SPECTATOR) + IS_SPEC(client) && ( (client.enemy != self.nent_client) @@ -1171,7 +1171,7 @@ float Net_Write_Notification(entity client, float sf) (client != self.nent_client) && !( - (client.classname == STR_SPECTATOR) + IS_SPEC(client) && (client.enemy == self.nent_client) )