Ignore:
Timestamp:
10/10/09 21:45:49 (10 years ago)
Author:
Kaydeth_parpg
Message:

Ticket #2: Patch by Kaydeth. Updated the rest of the classes in the scripts directory to correct some obvious discrepancies with our coding standard. Still need to go through the common and objects sub directories. comment[s:trac, t:2]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/sounds.py

    r150 r313  
    3232        self.music_init = False 
    3333     
    34     def playMusic(self, sfile = None): 
     34    def playMusic(self, sfile=None): 
    3535        """Play music, with the given file if passed 
    3636           @type sfile: string 
    3737           @param sfile: Filename to play 
    3838           @return: None""" 
    39         if(sfile != None): 
     39        if(sfile is not None): 
    4040            # setup the new sound 
    4141            sound = self.engine.getSoundClipPool().addResourceFromFile(sfile) 
     
    6666           @param volume: The volume wanted, 0 to 100 
    6767           @return: None""" 
    68         self.sound_engine.setVolume(0.01*volume) 
     68        self.sound_engine.setVolume(0.01 * volume) 
    6969 
Note: See TracChangeset for help on using the changeset viewer.