report openal errors with more detail

(to make debugging further sound issues easier)
position checking may be reduced again in a while...
This commit is contained in:
ac-stef
2014-05-14 14:28:45 +02:00
parent c9db8143f4
commit 6306a75e6e
3 changed files with 16 additions and 7 deletions
+1
View File
@@ -675,6 +675,7 @@ void addshotline(dynent *pl, const vec &from, const vec &to)
int start = (camera1->o.dist(to) <= 10.0f) ? 8 : 5;
vec unitv;
float dist = to.dist(from, unitv);
if(dist < 1) return;
unitv.div(dist);
// shotline visuals