diff eosd @ 476:44c5e7d4b615

Fix consistency
author Thibaut Girka <thib@sitedethib.com>
date Wed, 28 Dec 2011 18:47:37 +0100
parents 9d4d52793eca
children 1de67f332f00
line wrap: on
line diff
--- a/eosd
+++ b/eosd
@@ -44,13 +44,17 @@ def main(path, stage_num, rank, characte
 
     if port != 0:
         from pytouhou.network import Network
+        from pytouhou.utils.random import Random
+
         if remote:
             remote_addr, remote_port = remote.split(':')
             addr = remote_addr, int(remote_port)
+            players = [PlayerState(character=0), PlayerState(character=2)]
         else:
             addr = None
+            players = [PlayerState(character=2), PlayerState(character=0)]
 
-        players.append(PlayerState(character=character))
+        prng = Random(0)
         con = Network(port, addr)
     else:
         con = None