Skip to content

Commit 49e6dea

Browse files
committed
hello to the largest country on earth
1 parent 2fd482b commit 49e6dea

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

sc2reader/resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def createPlayer(pid, pdata, attributes):
374374
player.is_human = (attributes.get('Controller','Computer') == 'Human')
375375
player.uid = pdata.bnet.uid
376376
player.subregion = pdata.bnet.subregion
377-
player.gateway = {0:'', 1:'us',2:'eu',3:'kr',6:'sea', 98:'xx'}[pdata.bnet.unknown1] # actually is gateway!!!
377+
player.gateway = {0:'', 1:'us',2:'eu',3:'kr',5:'cn',6:'sea', 98:'xx'}[pdata.bnet.unknown1] # actually is gateway!!!
378378
player.handicap = pdata.handicap
379379
player.color = utils.Color(**pdata.color._asdict())
380380
return player
88.2 KB
Binary file not shown.

test_replays/test_all.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,3 +230,6 @@ def test_WoL_204():
230230

231231
def test_datastruct_10():
232232
replay = sc2reader.load_replay("test_replays/2.0.4.24944/Akilon Flats.SC2Replay")
233+
234+
def test_cn():
235+
replay = sc2reader.load_replay("test_replays/2.0.5.25092/cn1.SC2Replay")

0 commit comments

Comments
 (0)