diff pytouhou/ui/gamerunner.py @ 233:067f6d9c562b

Fix replay handling a bit
author Thibaut Girka <thib@sitedethib.com>
date Sat, 31 Dec 2011 02:50:04 +0100
parents 2d35565b5608
children da53bc29b94a
line wrap: on
line diff
--- a/pytouhou/ui/gamerunner.py
+++ b/pytouhou/ui/gamerunner.py
@@ -46,6 +46,10 @@ class GameRunner(pyglet.window.Window, G
         else:
             self.keys = 0
             self.replay_level = replay.levels[game.stage-1]
+            self.game.players[0].state.lives = self.replay_level.lives
+            self.game.players[0].state.power = self.replay_level.power
+            self.game.players[0].state.bombs = self.replay_level.bombs
+            self.game.difficulty = self.replay_level.difficulty
 
         self.fps_display = pyglet.clock.ClockDisplay()