shotgun sound fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1586 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-01-28 18:52:35 +00:00
parent 7bcb2a4399
commit c5686f257b
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -530,7 +530,7 @@ void particle_fireball(int type, vec &o)
VARP(bulletholettl, 0, 10000, 30000);
VARP(bulletbouncesound, 0, 1, 1);
bool addbullethole(vec &from, vec &to, float radius)
bool addbullethole(vec &from, vec &to, float radius, bool noisy)
{
if(!bulletholettl) return false;
vec surface, ray(to);
@@ -542,7 +542,7 @@ bool addbullethole(vec &from, vec &to, float radius)
o.add(ray.mul(dist));
o.add(vec(surface).mul(0.005f));
newparticle(o, surface, bulletholettl, 7);
if(bulletbouncesound) playsound(S_BULLETBOUNCE, NULL, NULL, &o);
if(noisy && bulletbouncesound) playsound(S_BULLETBOUNCE, NULL, NULL, &o);
return true;
}