Skip to content

Commit 93729b0

Browse files
committedMar 15, 2014
Fix sound not being played at the correct place.
1 parent 362ef5f commit 93729b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/game.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2659,7 +2659,7 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
26592659
}
26602660

26612661
// Update sound listener
2662-
sound->updateListener(camera.getCameraNode()->getPosition(),
2662+
sound->updateListener(camera.getCameraNode()->getPosition()+intToFloat(camera_offset, BS),
26632663
v3f(0,0,0), // velocity
26642664
camera.getDirection(),
26652665
camera.getCameraNode()->getUpVector());

0 commit comments

Comments
 (0)
Please sign in to comment.