Skip to content

Commit abe4797

Browse files
committed
correctly process 54518 replays
1 parent 39e81bc commit abe4797

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sc2reader/readers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def __call__(self, data, replay):
3535
skin=data.read_aligned_string(data.read_bits(9)) if replay.base_build >= 34784 else None,
3636
mount=data.read_aligned_string(data.read_bits(9)) if replay.base_build >= 34784 else None,
3737
toon_handle=data.read_aligned_string(data.read_bits(7)) if replay.base_build >= 34784 else None,
38+
scaled_rating=data.read_uint32()-2147483648 if replay.base_build >= 54518 and data.read_bool() else None,
3839
) for i in range(data.read_bits(5))],
3940

4041
game_description=dict(
@@ -89,6 +90,7 @@ def __call__(self, data, replay):
8990
is_blizzardMap=data.read_bool(),
9091
is_premade_ffa=data.read_bool(),
9192
is_coop_mode=data.read_bool() if replay.base_build >= 23925 else None,
93+
is_realtime_mode=data.read_bool() if replay.base_build >= 54518 else None,
9294
),
9395

9496
lobby_state=dict(

0 commit comments

Comments
 (0)