roloff factor 2

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1817 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-04-21 17:51:24 +00:00
parent a6a93d52ac
commit 8a0b7c57ef
2 changed files with 4 additions and 7 deletions
+2 -5
View File
@@ -284,6 +284,7 @@ struct location
{
alGenSources(1, &id);
alSourcef(id, AL_MAX_GAIN, maxgain);
alSourcef(id, AL_ROLLOFF_FACTOR, 2.0f);
return !alerr();
}
@@ -476,7 +477,6 @@ void initsound()
{
conoutf("Sound: %s (%s)", alGetString(AL_RENDERER), alGetString(AL_VENDOR));
conoutf("Driver: %s", alGetString(AL_VERSION));
//alDistanceModel(AL_INVERSE_DISTANCE);
alDistanceModel(AL_EXPONENT_DISTANCE_CLAMPED);
nosound = false;
}
@@ -658,10 +658,7 @@ void updatevol()
execute(cmd);
delete[] cmd;
}
else
{
gamemusic.replay();
}
else gamemusic.replay();
}
}