From 365caaf36d43b5bd68e016e1adfb56ed9b433354 Mon Sep 17 00:00:00 2001 From: "U-F2-PC\\F1" Date: Mon, 2 Jun 2014 19:40:30 +0900 Subject: [PATCH] no channel --- config | 2 +- lake_of_heavenly_wind/LakeOfHeavenlyWind.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config b/config index 54d20cc..f9d9c44 100644 --- 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 diff --git a/lake_of_heavenly_wind/LakeOfHeavenlyWind.py b/lake_of_heavenly_wind/LakeOfHeavenlyWind.py index 8b78720..c96b374 100644 --- a/lake_of_heavenly_wind/LakeOfHeavenlyWind.py +++ b/lake_of_heavenly_wind/LakeOfHeavenlyWind.py @@ -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): -- 2.1.4