]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Get rid of a console error when an onslaught generator isn't shielded anymore
authorterencehill <piuntn@gmail.com>
Fri, 15 Jun 2018 22:46:12 +0000 (00:46 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 15 Jun 2018 22:46:12 +0000 (00:46 +0200)
qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc

index 3ae51dcd1d9998ad75d3be7812c776a3bc4f10ed..8d4048b393cbbd39c3bc027e695feaebf006b911 100644 (file)
@@ -959,7 +959,8 @@ void ons_GeneratorThink(entity this)
                if (SAME_TEAM(it, this))
                {
                        Send_Notification(NOTIF_ONE, it, MSG_CENTER, CENTER_ONS_NOTSHIELDED_TEAM);
-                       soundto(MSG_ONE, it, CHAN_AUTO, SND(KH_ALARM), VOL_BASE, ATTEN_NONE); // FIXME: unique sound?
+                       msg_entity = it;
+                       soundto(MSG_ONE, this, CHAN_AUTO, SND(KH_ALARM), VOL_BASE, ATTEN_NONE); // FIXME: unique sound?
                }
                else
                        Send_Notification(NOTIF_ONE, it, MSG_CENTER, APP_TEAM_NUM(this.team, CENTER_ONS_NOTSHIELDED));