Don't send each team choice cvar 4 times to the server (we can do it now thanks to...
authorterencehill <piuntn@gmail.com>
Thu, 29 Aug 2019 20:09:45 +0000 (22:09 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 29 Aug 2019 20:09:45 +0000 (22:09 +0200)
qcsrc/common/notifications/all.qc

index b8e0d5c..663269c 100644 (file)
@@ -761,7 +761,7 @@ void Create_Notification_Entity_Choice(entity notif,
 #ifdef SVQC
 void Notification_GetCvars(entity this)
 {
-       FOREACH(Notifications, it.nent_type == MSG_CHOICE, {
+       FOREACH(Notifications, it.nent_type == MSG_CHOICE && (!it.nent_teamnum || it.nent_teamnum == NUM_TEAM_1), {
                GetCvars_handleFloat(
                        this,
                        CS(this),