File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -182,21 +182,15 @@ def process(self, replay):
182182 return replay
183183
184184 #Remove players from the teams as they drop out of the game
185- print replay .teams
186- print replay .players
187185 replay .results = dict ([team , len (players )] for team , players in replay .teams .iteritems ())
188186
189- print replay .results
190-
191187 for event in replay .events_by_type ['PlayerLeave' ]:
192188 #Some observer actions seem to be recorded, they aren't on teams anyway
193189 #Their pid will always be higher than the players
194- print "Player %s has left" % event .pid
195190 if event .pid <= len (replay .players ):
196191 team = replay .person [event .pid ].team
197192 replay .results [team ] -= 1
198193
199- print replay .results
200194 #mark all teams with no players left as losing, save the rest of the teams
201195 remaining = set ()
202196 for team , count in replay .results .iteritems ():
You can’t perform that action at this time.
0 commit comments