Mercurial > touhou
diff pytouhou/game/player.py @ 328:56523a16db1d
Fix some replay synchronization issues and update the TODO.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 21 Jun 2012 19:59:41 +0200 |
parents | f3099ebf4f61 |
children | 1b4f04b08729 |
line wrap: on
line diff
--- a/pytouhou/game/player.py +++ b/pytouhou/game/player.py @@ -192,10 +192,10 @@ class Player(object): self.state.invulnerable_time -= 1 m = self.state.invulnerable_time % 8 - if m == 0: + if m == 7 or self.state.invulnerable_time == 0: self.sprite.color = (255, 255, 255) self.sprite.changed = True - elif m == 2: + elif m == 1: self.sprite.color = (64, 64, 64) self.sprite.changed = True