Actually write to the player slots past player 64, and at the correct location.

This commit is contained in:
caitsith2 2020-06-07 04:26:20 -07:00
parent 7f66133d37
commit 705266da9b
1 changed files with 2 additions and 2 deletions

4
Rom.py
View File

@ -1260,8 +1260,8 @@ def patch_rom(world, rom, player, team, enemized):
rom.write_bytes(0x7FC0, rom.name)
# set player names
for p in range(1, min(world.players, 64) + 1):
rom.write_bytes(0x186380 + ((p - 1) * 32), hud_format_text(world.player_names[p][team]))
for p in range(1, min(world.players, 255) + 1):
rom.write_bytes(0x195FFC + ((p - 1) * 32), hud_format_text(world.player_names[p][team]))
# Write title screen Code
hashint = int(rom.get_hash(), 16)