fixed sound distance, mapreload vote

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1488 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-12-25 20:35:21 +00:00
parent bedf989f49
commit d617e97cdf
16 changed files with 126 additions and 245 deletions
+2 -1
View File
@@ -328,8 +328,9 @@ void updatechanvol(int chan, int svol, soundloc *sl)
}
else
{
vol -= (int)(dist*3/4*soundvol/255); // simple mono distance attenuation
vol -= (int)(dist*3*soundvol/255); // simple mono distance attenuation
if(vol<0) vol = 0;
conoutf("vol %d", vol);
}
if(sl->pse) // control looping physent sound volume
{