Skip to content

Commit

Permalink
Fix d778f55: NewGRF entries were not following new specs (#49)
Browse files Browse the repository at this point in the history
"name" field should always be set for NewGRFs, even if it is not known.
  • Loading branch information
TrueBrain committed Jul 18, 2021
1 parent d778f55 commit b3287f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master_server/openttd/receive.py
Expand Up @@ -133,7 +133,7 @@ def receive_PACKET_UDP_SERVER_RESPONSE(source, data):
for _ in range(newgrf_count):
grfid, data = read_uint32(data)
md5sum, data = read_bytes(data, 16)
payload["newgrfs"].append({"grfid": grfid, "md5sum": md5sum.hex()})
payload["newgrfs"].append({"grfid": grfid, "md5sum": md5sum.hex(), "name": None})

if game_info_version >= 3:
payload["game_date"], data = read_uint32(data)
Expand Down

0 comments on commit b3287f7

Please sign in to comment.