Skip to content

Commit 508ab22

Browse files
committed
Remove location_move from 16561, never used in all the test replays. How did it get there in the first place?
1 parent f76a2ba commit 508ab22

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

sc2reader/readers.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -537,10 +537,7 @@ def parse_ability_event(self, buffer, frames, type, code, pid):
537537
if atype & 0x20: # command card
538538
return self.command_card(buffer, frames, type, code, pid, flag, atype)
539539
elif atype & 0x40: # location/move
540-
if flag == 0x08:
541-
return self.right_click_move(buffer, frames, type, code, pid, flag, atype)
542-
elif flag in (0x04,0x05,0x07):
543-
return self.location_move(buffer, frames, type, code, pid, flag, atype)
540+
return self.right_click_move(buffer, frames, type, code, pid, flag, atype)
544541
elif atype & 0x80: # right-click on target?
545542
return self.right_click_target(buffer, frames, type, code, pid, flag, atype)
546543

@@ -579,18 +576,6 @@ def command_card(self, buffer, frames, type, code, pid, flag, atype):
579576
else:
580577
return AbilityEvent(frames,pid,type,code,ability)
581578

582-
def location_move(self, buffer, frames, type, code, pid, flag, atype):
583-
ability = buffer.read_short(endian=BIG_ENDIAN)
584-
ability = ability << 8 | buffer.read_byte()
585-
if ability & 0x20:
586-
buffer.read_hex(9)
587-
elif ability & 0x40:
588-
buffer.read_hex(18)
589-
else:
590-
pass
591-
592-
return UnknownLocationAbilityEvent(frames, pid, type, code, ability)
593-
594579
def right_click_target(self, buffer, frames, type, code, pid, flag, atype):
595580
# ability (2), object id (4), object type (2), ?? (10)
596581
ability = buffer.read_short(endian=BIG_ENDIAN)

0 commit comments

Comments
 (0)