Show
Ignore:
Timestamp:
01/05/07 03:25:05 (5 years ago)
Author:
mg
Message:

Change the way missile launch sound effects work, to be more like the others.
Fixes a bug where you would hear launch sounds when you pressed the fire key
while your ship was dead.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/pyspacewar/world.py

    r241 r245  
    556556        self.dead = False 
    557557        self.spawn_time = 0 # the value of world.time when last respawned 
     558        self.launch_effect = None 
    558559        self.hit_effect = None 
    559560        self.explode_effect = None 
     
    689690        self.velocity -= recoil 
    690691        self.world.add(missile) 
     692        if self.launch_effect: 
     693            self.launch_effect(self, missile) 
    691694 
    692695