From 9088004383cdb100e9f859092ea80c8697f52845 Mon Sep 17 00:00:00 2001
From: nehalmistry <>
Date: Tue, 9 Apr 2002 23:34:17 +0000
Subject: [PATCH] Cannot check music enabled box if sound is off.

---
 src/ui/menus.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/ui/menus.cpp b/src/ui/menus.cpp
index eee906197..1f60daef6 100644
--- a/src/ui/menus.cpp
+++ b/src/ui/menus.cpp
@@ -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();