Browse Source

adjustment

Cary Sandvig 24 years ago
parent
commit
bcbb805744
1 changed files with 6 additions and 8 deletions
  1. 6 8
      direct/src/gui/GuiGlobals.py

+ 6 - 8
direct/src/gui/GuiGlobals.py

@@ -38,21 +38,19 @@ def setDefaultDrawOrder(newDrawOrder):
 
 def getDefaultRolloverSound():
     global sndRollover
+    if not base.wantSfx:
+        return None
     if sndRollover == None:
         sndRollover = base.loadSfx("phase_3/audio/sfx/GUI_rollover.mp3")
-    if base.wantSfx:
-        return sndRollover
-    else:
-        return None
+    return sndRollover
 
 def getDefaultClickSound():
     global sndClick
+    if not base.wantSfx:
+        return None
     if sndClick == None:
         sndClick = base.loadSfx("phase_3/audio/sfx/GUI_create_toon_fwd.mp3")
-    if base.wantSfx:
-        return sndClick
-    else:
-        return None
+    return sndClick
 
 def getNewRolloverFunctor(sound = None):
     val = None