1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

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

View File

@@ -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());