Mercurial > touhou
comparison pytouhou/network.py @ 481:ef2aca7738d5
Fix synchro bug
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Wed, 28 Dec 2011 21:09:55 +0100 |
parents | d666856acb52 |
children | f6e44398afa5 |
comparison
equal
deleted
inserted
replaced
480:d666856acb52 | 481:ef2aca7738d5 |
---|---|
65 | 65 |
66 for frame, keystate, old_keystate, checksum in self.read_messages(): | 66 for frame, keystate, old_keystate, checksum in self.read_messages(): |
67 if frame == game.frame: | 67 if frame == game.frame: |
68 self.run_game_iter(game, self.keystate, keystate) | 68 self.run_game_iter(game, self.keystate, keystate) |
69 elif frame == game.frame + 1: | 69 elif frame == game.frame + 1: |
70 self.run_game_iter(game, self.old_keystate, keystate) | 70 self.run_game_iter(game, self.old_keystate, old_keystate) |
71 | 71 |