aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-10-30 05:49:17 -0700
committerChris Robinson <[email protected]>2011-10-30 05:49:17 -0700
commit956e6f95ec877f17d9ddbb7c77b4196cad70485d (patch)
tree7f8894073330f2a36fcef60e39b55b20d0b6af9f /Alc/ALu.c
parent50913948a07b8d3d75a0ca724e9d2289be6e017c (diff)
Don't translate the listener velocity
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 881d2583..72614bf8 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -486,12 +486,15 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
aluMatrixVector(Position, 1.0f, Matrix);
aluMatrixVector(Direction, 0.0f, Matrix);
aluMatrixVector(Velocity, 0.0f, Matrix);
- aluMatrixVector(ListenerVel, 0.0f, Matrix);
}
}
}
else
- ListenerVel[0] = ListenerVel[1] = ListenerVel[2] = 0.0f;
+ {
+ ListenerVel[0] = 0.0f;
+ ListenerVel[1] = 0.0f;
+ ListenerVel[2] = 0.0f;
+ }
SourceToListener[0] = -Position[0];
SourceToListener[1] = -Position[1];