From f26b03d94cf9339d2cecb9e2cd9b4826ee8acccf Mon Sep 17 00:00:00 2001 From: johns <> Date: Thu, 11 Apr 2002 14:10:39 +0000 Subject: [PATCH] Fixed warnings. --- src/ui/menus.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/menus.cpp b/src/ui/menus.cpp index e24892498..3293387dc 100644 --- a/src/ui/menus.cpp +++ b/src/ui/menus.cpp @@ -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);