From: Novatux Date: Sat, 15 Mar 2014 14:08:43 +0000 (+0100) Subject: Fix sound not being played at the correct place. X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=93729b09d5e02ed64ad7322137654c38bf858037;p=zefram%2Fminetest%2Fminetest_engine.git Fix sound not being played at the correct place. --- diff --git a/src/game.cpp b/src/game.cpp index 2b14b2c8..0a9dcfda 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());