Skip to content

Commit

Permalink
Update Rom.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbrq committed Apr 19, 2024
1 parent 362d494 commit 7e9ed1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worlds/mlss/Rom.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def randomize_music(caller: APProcedurePatch, rom: bytes):
if stream.tell() == 0x21CBD8:
stream.seek(4, 1)
continue
if stream.tell() == 0x21CC3C:
if stream.tell() >= 0x21CC3C:
break
temp = stream.read(4)
songs.append(temp)
Expand Down Expand Up @@ -153,7 +153,7 @@ def enemy_randomize(caller: APProcedurePatch, rom: bytes):
stream = io.BytesIO(rom)
random.seed(options["seed"] + options["player"])

if (options["randomize_bosses"] == 1 or (options["randomize_bosses"] == 2) and options["randomize_enemies"] == 0):
if options["randomize_bosses"] == 1 or (options["randomize_bosses"] == 2) and options["randomize_enemies"] == 0:
raw = []
for pos in bosses:
stream.seek(pos + 1)
Expand Down

0 comments on commit 7e9ed1b

Please sign in to comment.