From: Rudolf Polzer Date: Sat, 30 Oct 2010 11:33:18 +0000 (+0200) Subject: fix attenuation X-Git-Tag: xonotic-v0.1.0preview~230 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cf88cdd54abfea18a0b95fa5469f06e91482e57b;p=xonotic%2Fxonotic-data.pk3dir.git fix attenuation --- diff --git a/qcsrc/client/tuba.qc b/qcsrc/client/tuba.qc index cda2a415f..cf33b0183 100644 --- a/qcsrc/client/tuba.qc +++ b/qcsrc/client/tuba.qc @@ -24,7 +24,7 @@ void Ent_TubaNote_UpdateSound() { self.enemy.cnt = bound(0, VOL_BASE * cvar("g_balance_tuba_volume"), 1); self.enemy.count = self.enemy.cnt; - sound(self.enemy, CHAN_PROJECTILE, TUBA_STARTNOTE(self.cnt), self.enemy.cnt, self.attenuate * cvar("g_balance_tuba_attenuation")); + sound(self.enemy, CHAN_PROJECTILE, TUBA_STARTNOTE(self.cnt), self.enemy.cnt, self.enemy.attenuate * cvar("g_balance_tuba_attenuation")); } void Ent_TubaNote_StopSound()