diff pytouhou/game/game.pyx @ 545:bcff39c920ab

Set boss mode directly from the enemy.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 15 May 2014 20:14:54 +0200
parents 577c3a88fb67
children e35bef07290d
line wrap: on
line diff
--- a/pytouhou/game/game.pyx
+++ b/pytouhou/game/game.pyx
@@ -579,7 +579,7 @@ cdef class Game:
                 del self.texts[key]
 
         # Disable boss mode if it is dead/it has timeout
-        if self.boss and self.boss._enemy.removed:
+        if self.boss and self.boss.removed:
             self.boss = None