Permalink
Browse files

do not trigger sounds when paused

  • Loading branch information...
1 parent 3f386c4 commit ff2ad2f7b9c49f2914854ae5607f6d620ad8238e @mdoege committed Jan 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 pyscape.py
View
@@ -612,7 +612,7 @@ def update_all():
p.source.gain = p.gain_pure * (.5+.25*(1+math.sin(time()/2-p.offset)))**2
else:
p.source.gain = p.gain_pure
- if not p.source.looping and p.active:
+ if not p.source.looping and p.active and not stop_it:
if p.source.state != openal._al.PLAYING:
if random.expovariate(1) > 4 and (not is_solo or p.solo):
pitch = random.normalvariate(1., .3)

0 comments on commit ff2ad2f

Please sign in to comment.