Skip to content

Commit

Permalink
fix false error when using simon mask
Browse files Browse the repository at this point in the history
  • Loading branch information
BLooperZ committed Nov 20, 2023
1 parent 906b6d8 commit 089de8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/magos/gamepc_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,8 +814,9 @@ def parse_cmds(
for p in parsed:
if p.ptype != 'T':
continue
if p.value >= BASE_MIN and p.value not in text_range:
raise InvalidTextReferenceError(command, args, p.value, text_range)
text_ref = p.value & ~p.mask
if text_ref >= BASE_MIN and text_ref not in text_range:
raise InvalidTextReferenceError(command, args, text_ref, text_range)
yield Command(op, command, parsed)


Expand Down

0 comments on commit 089de8a

Please sign in to comment.