Skip to content

Commit ff60dd0

Browse files
committed
Reverts team assignment change.
Until the teams tests are passing its better to be broken in the same old way instead of a new one.
1 parent 2140fab commit ff60dd0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ CHANGELOG
55
--------------------
66

77
* Hooked up travis-ci for continuous testing. https://travis-ci.org/GraylinKim/sc2reader
8-
* Fixed player team assignment.
98
* Log a warning instead of throwing an exception when using an unknown colors.
109
* An unknown hex value will use the hex value as the name.
1110
* An unknown color name will use 0x000000 as the color.

sc2reader/resources.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,8 @@ def createPlayer(pid, pdata, attributes):
372372

373373
# In some beta patches attribute information is missing
374374
# Just assign them to team 2 to keep the issue from being fatal
375-
team_number = pdata.team+1
375+
team_number = int(attributes.get('Teams'+self.type, "Team 2")[5:])
376+
# team_number = pdata.team+1
376377

377378
if not team_number in self.team:
378379
self.team[team_number] = Team(team_number)

0 commit comments

Comments
 (0)