From: Novatux Date: Sat, 15 Mar 2014 14:08:43 +0000 (+0100) Subject: Fix sound not being played at the correct place. X-Git-Tag: 0.4.10~214 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=93729b09d5e02ed64ad7322137654c38bf858037;p=oweals%2Fminetest.git Fix sound not being played at the correct place. --- 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());