From: Holger Schemel Date: Wed, 14 Feb 2024 18:49:59 +0000 (+0100) Subject: added sound consistency check for native BD engine X-Git-Tag: 4.4.0.0-test-1~362 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=5ec01a82c3cdcad574cbd957ad9c8cf29de6f2d6;p=rocksndiamonds.git added sound consistency check for native BD engine --- diff --git a/src/game_bd/bd_sound.c b/src/game_bd/bd_sound.c index e4f0281f..13edc0d9 100644 --- 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; }