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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user