[PATCH] Fix logic error with first time sound initialisation

Minor ordering fix so that the message signifying that no sound device was
initialised gets printed to the console as intended.

Signed-off-by: Tyrann <tyrann@disenchant.net>
This commit is contained in:
Tyrann 2007-12-30 22:43:01 +10:30
parent ca761e1147
commit 89ded21f0a

View File

@ -589,13 +589,14 @@ SNDDMA_Init(void)
}
}
snd_firsttime = false;
if (!dsound_init && !wav_init) {
if (snd_firsttime)
if (snd_firsttime) {
Con_SafePrintf("No sound device initialized\n");
snd_firsttime = false;
}
return false;
}
snd_firsttime = false;
return true;
}