changeset 112:a2c09200a433

Remove check for None sound -- sound is never None.
author Simon Cross <simon@simonx>
date Tue, 24 Aug 2010 14:44:29 +0200
parents 18ffaaaa27e7
children 1a55d10c0469
files gamelib/speech.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/speech.py	Tue Aug 24 14:43:33 2010 +0200
+++ b/gamelib/speech.py	Tue Aug 24 14:44:29 2010 +0200
@@ -41,5 +41,4 @@
 def say(thing_name, text):
     """Play text as speech."""
     sound = get_speech(thing_name, text)
-    if sound is not None:
-        sound.play()
+    sound.play()