# HG changeset patch
# User Thibaut Girka <thib@sitedethib.com>
# Date 1341689569 -7200
# Node ID b3049fb5c44855d011329c79ff7868cd0a1c29b5
# Parent  96e30d6268dd4060d9fc0035ec0f91987a715d52
Fix remaining lives display issue

diff --git a/pytouhou/game/enemy.py b/pytouhou/game/enemy.py
--- a/pytouhou/game/enemy.py
+++ b/pytouhou/game/enemy.py
@@ -59,7 +59,7 @@ class Enemy(object):
         self.low_life_trigger = None
         self.timeout = -1
         self.timeout_callback = -1
-        self.remaining_lives = -1
+        self.remaining_lives = 0
 
         self.automatic_orientation = False
 
diff --git a/pytouhou/games/eosd.py b/pytouhou/games/eosd.py
--- a/pytouhou/games/eosd.py
+++ b/pytouhou/games/eosd.py
@@ -169,7 +169,7 @@ class EoSDInterface(object):
         self.labels['player'].set_value(player_state.lives)
         self.labels['bombs'].set_value(player_state.bombs)
 
-        if self.game.boss and self.game.boss._enemy.remaining_lives != -1:
+        if self.game.boss:
             boss = self.game.boss._enemy
 
             life_gauge = self.boss_items[1]