comparison pytouhou/network.py @ 482:f6e44398afa5

Fix a synchro issue... again...
author Thibaut Girka <thib@sitedethib.com>
date Wed, 28 Dec 2011 21:32:30 +0100
parents ef2aca7738d5
children 216107767b8a
comparison
equal deleted inserted replaced
481:ef2aca7738d5 482:f6e44398afa5
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, old_keystate) 70 self.run_game_iter(game, self.keystate, old_keystate)
71 71