aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2014-03-15 15:08:43 +0100
committerNovatux <nathanael.courant@laposte.net>2014-03-15 16:25:34 +0100
commit93729b09d5e02ed64ad7322137654c38bf858037 (patch)
tree95e01c6cdef0a328f6ff5d1c1b72f58924e0f600
parent362ef5f6ced862daa4733034810d0b07e2ad5d89 (diff)
downloadminetest-93729b09d5e02ed64ad7322137654c38bf858037.tar.gz
minetest-93729b09d5e02ed64ad7322137654c38bf858037.tar.bz2
minetest-93729b09d5e02ed64ad7322137654c38bf858037.zip
Fix sound not being played at the correct place.
-rw-r--r--src/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 2b14b2c8e..0a9dcfdae 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -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());