mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Define and use DEFAULT_SFX_NUMBER_PLAYING
This commit is contained in:
parent
95435ea512
commit
123ca2812a
2 changed files with 3 additions and 2 deletions
|
@ -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")) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue