diff pytouhou/ui/gamerunner.pyx @ 494:6be9c99a3a24

Merge PlayerState into Player, fix player respawn position.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 14 Oct 2013 12:11:01 +0200
parents 711c75115675
children c622eaf64428
line wrap: on
line diff
--- a/pytouhou/ui/gamerunner.pyx
+++ b/pytouhou/ui/gamerunner.pyx
@@ -48,9 +48,9 @@ cdef class GameRunner(Runner):
 
         self.set_input(replay)
         if replay and replay.levels[game.stage - 1]:
-            game.players[0].state.lives = self.replay_level.lives
-            game.players[0].state.power = self.replay_level.power
-            game.players[0].state.bombs = self.replay_level.bombs
+            game.players[0].lives = self.replay_level.lives
+            game.players[0].power = self.replay_level.power
+            game.players[0].bombs = self.replay_level.bombs
             game.difficulty = self.replay_level.difficulty
 
         self.save_keystates = save_keystates