projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbe2d05
)
fixed sound volume (no sound positions) for native BD sound engine
author
Holger Schemel
<info@artsoft.org>
Wed, 14 Feb 2024 18:08:57 +0000
(19:08 +0100)
committer
Holger Schemel
<info@artsoft.org>
Sun, 18 Feb 2024 15:16:59 +0000
(16:16 +0100)
src/game_bd/bd_sound.c
patch
|
blob
|
history
diff --git
a/src/game_bd/bd_sound.c
b/src/game_bd/bd_sound.c
index 799ff44fa44c8789434c0f6872529fa154beb412..e43af91fd75220eef348b974a62cdf079221bede 100644
(file)
--- a/
src/game_bd/bd_sound.c
+++ b/
src/game_bd/bd_sound.c
@@
-381,8
+381,8
@@
void gd_sound_play(GdCave *cave, GdSound sound, GdElement element, int x, int y)
game_bd.game->state_counter == GAME_INT_CAVE_RUNNING)
return;
- //
if no player position specified, use middle of th
e screen position
- if (
x == -1 && y == -1
)
+ //
when using native sound engine or if no position specified, use middl
e screen position
+ if (
game.use_native_bd_sound_engine || (x == -1 && y == -1)
)
{
x = get_play_area_w() / 2 + get_scroll_x();
y = get_play_area_h() / 2 + get_scroll_y();