From 93729b09d5e02ed64ad7322137654c38bf858037 Mon Sep 17 00:00:00 2001 From: Novatux Date: Sat, 15 Mar 2014 15:08:43 +0100 Subject: [PATCH] Fix sound not being played at the correct place. --- src/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());