Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix sound not being played at the correct place.
  • Loading branch information
Ekdohibs committed Mar 15, 2014
1 parent 362ef5f commit 93729b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game.cpp
Expand Up @@ -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());
Expand Down

0 comments on commit 93729b0

Please sign in to comment.