Define and use DEFAULT_SFX_NUMBER_PLAYING

This commit is contained in:
smallmodel 2024-10-02 19:02:20 +02:00
parent 95435ea512
commit 123ca2812a
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
2 changed files with 3 additions and 2 deletions

View file

@ -34,7 +34,7 @@ void load_sfx_info()
sfx_infos[0].max_factor = -1.0;
sfx_infos[0].loop_start = -1;
sfx_infos[0].loop_end = -1;
sfx_infos[0].max_number_playing = 5;
sfx_infos[0].max_number_playing = DEFAULT_SFX_NUMBER_PLAYING;
number_of_sfx_infos = 1;
for (current_sound_file = 0; current_sound_file < 10; current_sound_file++) {
@ -62,7 +62,7 @@ void load_sfx_info()
sfx_infos[number_of_sfx_infos].max_factor = -1.f;
sfx_infos[number_of_sfx_infos].loop_start = -1;
sfx_infos[number_of_sfx_infos].loop_end = -1;
sfx_infos[number_of_sfx_infos].max_number_playing = 5;
sfx_infos[number_of_sfx_infos].max_number_playing = DEFAULT_SFX_NUMBER_PLAYING;
number_of_sfx_infos++;
}
} else if (!Q_stricmp(token, "loopstart")) {

View file

@ -162,6 +162,7 @@ enum loopsound_flags_t {
#define MAX_SFX 1400
#define MAX_SFX_INFOS 1000
#define MAX_LOOP_SOUNDS 64
#define DEFAULT_SFX_NUMBER_PLAYING 10 //5
extern qboolean s_bLastInitSound;
extern qboolean s_bSoundStarted;