comparison pytouhou/ui/gamerunner.pyx @ 487:711c75115675

Various netplay-related fixes.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 28 Sep 2013 20:11:41 +0200
parents 2f53be1b2f60
children 6be9c99a3a24
comparison
equal deleted inserted replaced
486:2f53be1b2f60 487:711c75115675
132 self.game.sfx_player = SFXPlayer(self.game.resource_loader) 132 self.game.sfx_player = SFXPlayer(self.game.resource_loader)
133 133
134 if self.save_keystates is not None: 134 if self.save_keystates is not None:
135 self.save_keystates.append(keystate) 135 self.save_keystates.append(keystate)
136 136
137 if self.con: 137 if self.con is not None:
138 self.con.run_iter(self.game, keystate) 138 self.con.run_iter(self.game, keystate)
139 else: 139 else:
140 self.game.run_iter([keystate]) 140 self.game.run_iter([keystate])
141 141
142 self.game.interface.labels['framerate'].set_text('%.2ffps' % self.window.get_fps()) 142 self.game.interface.labels['framerate'].set_text('%.2ffps' % self.window.get_fps())