relocate declaration of sounddir

It shouldn't have been located inside an #ifdef USER_SOUNDS block.
This commit is contained in:
nhmall
2026-08-28 10:46:50 -04:00
parent ebe14f87d9
commit 988eaa44b4
+2 -1
View File
@@ -1538,6 +1538,8 @@ tiphat(void)
return res;
}
char *sounddir = 0; /* set in files.c */
#ifdef USER_SOUNDS
typedef struct audio_mapping_rec {
@@ -1551,7 +1553,6 @@ typedef struct audio_mapping_rec {
static audio_mapping *soundmap = 0;
static audio_mapping *sound_matches_message(const char *);
char *sounddir = 0; /* set in files.c */
/* adds a sound file mapping, returns 0 on failure, 1 on success */
int