Fix sound not being played at the correct place.

This commit is contained in:
Novatux 2014-03-15 15:08:43 +01:00
parent 362ef5f6ce
commit 93729b09d5

@ -2659,7 +2659,7 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
}
// Update sound listener
sound->updateListener(camera.getCameraNode()->getPosition(),
sound->updateListener(camera.getCameraNode()->getPosition()+intToFloat(camera_offset, BS),
v3f(0,0,0), // velocity
camera.getDirection(),
camera.getCameraNode()->getUpVector());