From c5b8f3a60db846ecf8e856635994da3956aa89e3 Mon Sep 17 00:00:00 2001 From: driAn Date: Sun, 13 Apr 2008 22:13:08 +0000 Subject: [PATCH] fixed sound artifacts/clicking git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1794 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/sound.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/sound.cpp b/source/src/sound.cpp index add73dcf..ac7bf877 100644 --- a/source/src/sound.cpp +++ b/source/src/sound.cpp @@ -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));