Mercurial > touhou
comparison eosd @ 476:44c5e7d4b615
Fix consistency
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Wed, 28 Dec 2011 18:47:37 +0100 |
parents | 9d4d52793eca |
children | 1de67f332f00 |
comparison
equal
deleted
inserted
replaced
475:9d4d52793eca | 476:44c5e7d4b615 |
---|---|
42 else: | 42 else: |
43 prng = None | 43 prng = None |
44 | 44 |
45 if port != 0: | 45 if port != 0: |
46 from pytouhou.network import Network | 46 from pytouhou.network import Network |
47 from pytouhou.utils.random import Random | |
48 | |
47 if remote: | 49 if remote: |
48 remote_addr, remote_port = remote.split(':') | 50 remote_addr, remote_port = remote.split(':') |
49 addr = remote_addr, int(remote_port) | 51 addr = remote_addr, int(remote_port) |
52 players = [PlayerState(character=0), PlayerState(character=2)] | |
50 else: | 53 else: |
51 addr = None | 54 addr = None |
55 players = [PlayerState(character=2), PlayerState(character=0)] | |
52 | 56 |
53 players.append(PlayerState(character=character)) | 57 prng = Random(0) |
54 con = Network(port, addr) | 58 con = Network(port, addr) |
55 else: | 59 else: |
56 con = None | 60 con = None |
57 | 61 |
58 resource_loader = Loader() | 62 resource_loader = Loader() |