projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25eeddd
)
added sound consistency check for native BD engine
author
Holger Schemel
<info@artsoft.org>
Wed, 14 Feb 2024 18:49:59 +0000
(19:49 +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 e4f0281fb7634552e257917a4dd46382498ad347..13edc0d92a4c10d8204bd8b69183086a18b6a4d1 100644
(file)
--- a/
src/game_bd/bd_sound.c
+++ b/
src/game_bd/bd_sound.c
@@
-269,6
+269,10
@@
void gd_sound_init(void)
{
int i;
+ for (i = 0; i < GD_S_MAX; i++)
+ if (sound_flags[i].sound != i)
+ Fail("sound db index mismatch: %d", i);
+
for (i = 0; i < MAX_CHANNELS; i++)
snd_playing[i] = GD_S_NONE;
}