From: terencehill Date: Fri, 15 Jun 2018 22:46:12 +0000 (+0200) Subject: Get rid of a console error when an onslaught generator isn't shielded anymore X-Git-Tag: xonotic-v0.8.5~2041 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=248adcd076460eb075fb2d8fbd851ca310c6b174;p=xonotic%2Fxonotic-data.pk3dir.git Get rid of a console error when an onslaught generator isn't shielded anymore --- 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));