Fixed warnings.

This commit is contained in:
johns 2002-04-11 14:10:39 +00:00
parent 9aa832e48c
commit f26b03d94c

View file

@ -1735,7 +1735,9 @@ local void GameMenuLoad(void)
global void SoundOptions(void)
{
#ifdef WITH_SOUND
#ifdef USE_LIBCDA
int i = 17;
#endif
if (SoundFildes != -1)
SoundOptionsMenuItems[5].d.gem.state = MI_GSTATE_CHECKED;
@ -1821,13 +1823,12 @@ local void SetMusicPower(Menuitem *mi)
local void SetCdPower(Menuitem *mi)
{
int i = 17;
#ifdef USE_SDLCD
/// Start Playing CD
if (!strcmp(":off", CDMode) || !strcmp(":stopped", CDMode)) {
PlayMusic(":random");
if (SDL_CDStatus(CDRom) <= 1)
SoundOptionsMenuItems[i].d.gem.state = MI_GSTATE_UNCHECKED;
SoundOptionsMenuItems[17].d.gem.state = MI_GSTATE_UNCHECKED;
} else {
/// Stop Playing CD
SDL_CDStop(CDRom);