diff options
author | Chris Robinson <[email protected]> | 2011-10-30 05:49:17 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-10-30 05:49:17 -0700 |
commit | 956e6f95ec877f17d9ddbb7c77b4196cad70485d (patch) | |
tree | 7f8894073330f2a36fcef60e39b55b20d0b6af9f /Alc/ALu.c | |
parent | 50913948a07b8d3d75a0ca724e9d2289be6e017c (diff) |
Don't translate the listener velocity
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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]; |