]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use the IS_SPEC macros for these
authorSamual Lenks <samual@xonotic.org>
Sun, 3 Mar 2013 21:51:35 +0000 (16:51 -0500)
committerSamual Lenks <samual@xonotic.org>
Sun, 3 Mar 2013 21:51:35 +0000 (16:51 -0500)
qcsrc/common/notifications.qc

index 67e6067560372d2a0902ee9bfe83f9f882927929..e9b0c210ef3b3c71f17923806ca275db93db65b7 100644 (file)
@@ -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)
                                )