mirror of
https://github.com/minetest/minetest.git
synced 2024-11-24 00:23:46 +01:00
Fix sound not being played at the correct place.
This commit is contained in:
parent
362ef5f6ce
commit
93729b09d5
@ -2659,7 +2659,7 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update sound listener
|
// Update sound listener
|
||||||
sound->updateListener(camera.getCameraNode()->getPosition(),
|
sound->updateListener(camera.getCameraNode()->getPosition()+intToFloat(camera_offset, BS),
|
||||||
v3f(0,0,0), // velocity
|
v3f(0,0,0), // velocity
|
||||||
camera.getDirection(),
|
camera.getDirection(),
|
||||||
camera.getCameraNode()->getUpVector());
|
camera.getCameraNode()->getUpVector());
|
||||||
|
Loading…
Reference in New Issue
Block a user