changeset 216:a842ddd471fd

Pass the real speed to Player. Thanks to elghinn for discovering the bug.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 07 Dec 2011 14:03:16 +0100
parents ab6e6909ce04
children 577f45454402
files pytouhou/games/eosd.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/games/eosd.py
+++ b/pytouhou/games/eosd.py
@@ -59,7 +59,7 @@ class EoSDGame(Game):
 
 class EoSDPlayer(Player):
     def __init__(self, state, game, anm_wrapper, speed=4., hitbox_size=2.5, graze_hitbox_size=42.):
-        Player.__init__(self, state, game, anm_wrapper, speed=4.)
+        Player.__init__(self, state, game, anm_wrapper, speed=speed)
 
         self.orbs = [Orb(self.anm_wrapper, 128, self.state, self.orb_fire),
                      Orb(self.anm_wrapper, 129, self.state, self.orb_fire)]