Changeset 160


Ignore:
Timestamp:
06/22/09 16:23:56 (10 years ago)
Author:
bretzel_parpg
Message:

The option to not play sounds actually effects the playback now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PARPG/scripts/world.py

    r157 r160  
    146146        # TODO: remove hard coding by putting this in the level data 
    147147        # don't force restart if skipping to new section 
    148         if(self.sounds.music_init == False): 
    149             self.sounds.playMusic("/music/preciouswasteland.ogg") 
    150         elif(unpause == True): 
    151             self.sounds.playMusic() 
     148        if (TDS.readSetting("PlaySounds") == "1"): 
     149            if(self.sounds.music_init == False): 
     150                self.sounds.playMusic("/music/preciouswasteland.ogg") 
     151            elif(unpause == True): 
     152                self.sounds.playMusic() 
    152153 
    153154    def addPC(self, agent): 
Note: See TracChangeset for help on using the changeset viewer.