]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix attenuation
authorRudolf Polzer <divverent@alientrap.org>
Sat, 30 Oct 2010 11:33:18 +0000 (13:33 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 30 Oct 2010 11:33:18 +0000 (13:33 +0200)
qcsrc/client/tuba.qc

index cda2a415f39dd379abd48bf2a8d7c5f3038a10be..cf33b0183136745cc332ce033c22b93a46235c0a 100644 (file)
@@ -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()