Skip to content

Commit

Permalink
Change the zero const to a signed integer in the de/player struct
Browse files Browse the repository at this point in the history
In some replays, the value has been observed to be "-1" as opposed to "0"
  • Loading branch information
ZetaTwo committed Sep 27, 2024
1 parent deea5c4 commit 2f2931a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mgz/header/de.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
"dat_crc"/Bytes(8),
"mp_game_version"/Byte,
"civ_id"/Int32ul,
"unk"/If(lambda ctx: find_save_version(ctx) >= 61.5, Int32ul),
"unk1"/If(lambda ctx: find_save_version(ctx) >= 61.5, Int32ul),
"ai_type"/de_string,
"ai_civ_name_index"/Byte,
"ai_name"/de_string,
"name"/de_string,
"type"/PlayerTypeEnum(Int32ul),
"profile_id"/Int32ul,
Const(b"\x00\x00\x00\x00"),
"unk2" / Int32sl,
"player_number"/Int32sl,
"hd_rm_elo"/If(lambda ctx: find_save_version(ctx) < 25.22, Int32ul),
"hd_dm_elo"/If(lambda ctx: find_save_version(ctx) < 25.22, Int32ul),
Expand Down

0 comments on commit 2f2931a

Please sign in to comment.