Cannot check music enabled box if sound is off.

This commit is contained in:
nehalmistry 2002-04-09 23:34:17 +00:00
parent 83a8b7f8e1
commit 9088004383

View file

@ -1750,6 +1750,8 @@ global void SoundOptions(void)
#endif
if (SoundFildes != -1)
SoundOptionsMenuItems[5].d.gem.state = MI_GSTATE_CHECKED;
else
SoundOptionsMenuItems[5].d.gem.state = MI_GSTATE_UNCHECKED;
SoundOptionsMenuItems[2].d.hslider.percent = (GlobalVolume * 100) / 255;
if (PlayingMusic == 1 && SoundFildes != -1)
@ -1782,6 +1784,7 @@ local void SetMasterPower(Menuitem *mi)
SoundFildes=-1;
} else {
InitSound();
SoundOff=0;
}
#endif
EndMenu();