Skip to content

Commit 3d71f31

Browse files
committed
Have the SelectionTracker use the new event groups.
1 parent b686f4e commit 3d71f31

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sc2reader/plugins/replay.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,12 @@ def APMTracker(replay):
9999
def SelectionTracker(replay):
100100
debug = replay.opt.debug
101101
logger = log_utils.get_logger(SelectionTracker)
102-
efilter = lambda e: isinstance(e, SelectionEvent) or isinstance(e, HotkeyEvent)
103102

104103
for person in replay.people:
105104
# TODO: A more robust person interface might be nice
106105
person.selection_errors = 0
107106
player_selection = GameState(PlayerSelection())
108-
for event in filter(efilter, person.events):
107+
for event in person.selection_events:
109108
if debug: logger.debug("Event bytes: "+event.bytes.encode("hex"))
110109

111110
error = False

0 commit comments

Comments
 (0)