From 636720d46bf69ef1aab65fa462f73cc66389ff68 Mon Sep 17 00:00:00 2001 From: Cary Sandvig Date: Mon, 23 Apr 2001 22:20:36 +0000 Subject: [PATCH] a hair more cleanup --- direct/src/showbase/ShowBase.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index 173c434be3..6f8f738be6 100644 --- a/direct/src/showbase/ShowBase.py +++ b/direct/src/showbase/ShowBase.py @@ -36,13 +36,13 @@ class ShowBase: # Store dconfig variables self.wantTk = self.config.GetBool('want-tk', 0) - self.wantSound = self.config.GetBool('want-sound', 1) - if not self.wantSound: + self.wantAnySound = self.config.GetBool('want-sound', 1) + if not self.wantAnySound: AudioManager.setAllSoundActive(0) self.wantSfx = AudioManager.getSfxActive() self.wantMusic = AudioManager.getMusicActive() if not (self.wantSfx or self.wantMusic): - self.wantSound = None + self.wantAnySound = None self.wantDIRECT = self.config.GetBool('want-directtools', 0) self.wantStats = self.config.GetBool('want-stats', 0) @@ -231,7 +231,7 @@ class ShowBase: PStatClient.getGlobalPstats().connect() def createAudioManager(self): - if self.wantSound: + if self.wantAnySound: AudioManager.spawnUpdate() def loadSfx(self, name):