Skip to content

Commit 2f9e4b0

Browse files
committed
Opens up the matching range of 04XC events to 0-F preemptively to avoid having to adjust every time a higher instance is found (was previously trying to be more percise)
1 parent e915500 commit 2f9e4b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sc2reader/parsers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ class EventParser_16561(EventParser):
279279
0x04: [
280280
(UnknownEventParser_0487(), lambda e: e.code == 0x87 ),
281281
(UnknownEventParser_04C6(), lambda e: e.code == 0xC6 ),
282-
(UnknownEventParser_04XC(), lambda e: e.code & 0x0F == 0x0C and e.code >> 4 <= 0x04 ),],
282+
(UnknownEventParser_04XC(), lambda e: e.code & 0x0F == 0x0C ),],
283283
0x05: [
284284
(UnknownEventParser_0589(), lambda e: e.code == 0x89 ),],
285285
}
@@ -319,7 +319,7 @@ class EventParser_17326(EventParser):
319319
0x04: [
320320
(UnknownEventParser_0487(), lambda e: e.code == 0x87 ),
321321
(UnknownEventParser_04C6(), lambda e: e.code == 0xC6 ),
322-
(UnknownEventParser_04XC(), lambda e: e.code & 0x0F == 0x0C and e.code >> 4 <= 0x6 ),],
322+
(UnknownEventParser_04XC(), lambda e: e.code & 0x0F == 0x0C ),],
323323
0x05: [
324324
(UnknownEventParser_0589(), lambda e: e.code == 0x89 ),],
325325
}

0 commit comments

Comments
 (0)