fixed sound artifacts/clicking

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1794 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-04-13 22:13:08 +00:00
parent 240e328e1b
commit c5b8f3a60d
+2 -2
View File
@@ -299,13 +299,13 @@ struct location
void play()
{
alSourcePlay(id);
if(!inuse)
{
s->uses++;
inuse = true;
}
updatepos();
alSourcePlay(id);
}
void pause()
@@ -422,7 +422,7 @@ struct location
}
else if(e) // entities
{
// own distance model for entities/mapsounds: linear clamping
// own distance model for entities/mapsounds: linear & clamping
if(e->attr2)
{
float dist = camera1->o.dist(vec(e->x, e->y, e->z));