[nexuiz-commits] r8273 - trunk/data/qcsrc/client
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Nov 11 16:05:31 EST 2009
Author: div0
Date: 2009-11-11 16:05:30 -0500 (Wed, 11 Nov 2009)
New Revision: 8273
Modified:
trunk/data/qcsrc/client/tuba.qc
Log:
more fixing :P
Modified: trunk/data/qcsrc/client/tuba.qc
===================================================================
--- trunk/data/qcsrc/client/tuba.qc 2009-11-11 21:03:57 UTC (rev 8272)
+++ trunk/data/qcsrc/client/tuba.qc 2009-11-11 21:05:30 UTC (rev 8273)
@@ -11,7 +11,10 @@
void Ent_TubaNote_StopSound()
{
- sound(self, CHAN_PROJECTILE, TUBA_STOPNOTE(self.cnt), bound(0, VOL_BASE * cvar("g_balance_tuba_volume"), 1), cvar("g_balance_tuba_attenuation"));
+ string s;
+ s = TUBA_STOPNOTE(self.cnt);
+ if(s != "")
+ sound(self, CHAN_PROJECTILE, s, bound(0, VOL_BASE * cvar("g_balance_tuba_volume"), 1), cvar("g_balance_tuba_attenuation"));
}
void Ent_TubaNote(float bIsNew)
@@ -42,6 +45,7 @@
for(i = -18; i <= +27; ++i)
{
precache_sound(TUBA_STARTNOTE(i));
- //precache_sound(TUBA_STOPNOTE(i));
+ if(TUBA_STOPNOTE(i) != "")
+ precache_sound(TUBA_STOPNOTE(i));
}
}
More information about the nexuiz-commits
mailing list