about summary refs log tree commit diff homepage
path: root/brutalmaze/characters.py
diff options
context:
space:
mode:
authorNguyễn Gia Phong <vn.mcsinyx@gmail.com>2018-01-28 11:48:41 +0700
committerNguyễn Gia Phong <vn.mcsinyx@gmail.com>2018-01-28 11:48:41 +0700
commit1b2dc5e1692e9d7b010aa9822d228f4fc3c5ac1e (patch)
treecc0c976fb57493055b489654cb4085548d18c45a /brutalmaze/characters.py
parentfca23ea3ce86461f1b970afeb87fcbf5c3a124d3 (diff)
downloadbrutalmaze-1b2dc5e1692e9d7b010aa9822d228f4fc3c5ac1e.tar.gz
Make all sound playing fail-safe 0.4.2
Diffstat (limited to 'brutalmaze/characters.py')
-rw-r--r--brutalmaze/characters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/brutalmaze/characters.py b/brutalmaze/characters.py
index c47e22e..262578e 100644
--- a/brutalmaze/characters.py
+++ b/brutalmaze/characters.py
@@ -79,7 +79,7 @@ class Hero:
             self.wound -= HEAL_SPEED / self.spin_speed / HERO_HP
             if self.wound < 0: self.wound = 0.0
         if time > self.next_beat:
-            self.sfx_heart.play()
+            play(self.sfx_heart)
             self.next_beat = time + MIN_BEAT*(2 - self.wound/HERO_HP)
 
         if self.slashing and time >= self.next_strike: