From 248adcd076460eb075fb2d8fbd851ca310c6b174 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 16 Jun 2018 00:46:12 +0200 Subject: [PATCH] Get rid of a console error when an onslaught generator isn't shielded anymore --- qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc index 3ae51dcd1..8d4048b39 100644 --- a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc +++ b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc @@ -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)); -- 2.39.2