]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 b8e0d5c6998c8a37cc8ec5ea9d809116d2c3e235..663269c93558bac46a733f26d6c70a65e8921db7 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),