no channel
authorU-F2-PC\F1 <F1@F2-PC.(none)>
Mon, 2 Jun 2014 10:40:30 +0000 (19:40 +0900)
committerU-F2-PC\F1 <F1@F2-PC.(none)>
Mon, 2 Jun 2014 10:40:30 +0000 (19:40 +0900)
config
lake_of_heavenly_wind/LakeOfHeavenlyWind.py

diff --git a/config b/config
index 54d20cc..f9d9c44 100644 (file)
--- a/config
+++ b/config
@@ -6,7 +6,7 @@ title = Wind from Heaven's Lake
 url = http://A-O.in/
 summary = Consult the oracle while protecting your pulp supply!
 platform = Linux
-version = 0.1.0
+version = 0.2.0
 init-script = lake-of-heavenly-wind
 package-root = lake_of_heavenly_wind
 
index 8b78720..c96b374 100644 (file)
@@ -273,7 +273,8 @@ class SoundEffect(GameChild, Sound):
         channel = Sound.play(self)
         right = 1 + min(0, ((position - .5) * 2))
         left = 1 - max(0, ((position - .5) * 2))
-        channel.set_volume(left, right)
+       if channel is not None:
+            channel.set_volume(left, right)
 
 
 class GameScreen(GameChild):