Skip to content

Commit

Permalink
Use NO_INPUT instead of magic number (pret/pokecrystal#1051)
Browse files Browse the repository at this point in the history
This is for the Virtual Console builds, where it disables the print functions of Unown and Mail.
  • Loading branch information
Idain authored and vulcandth committed May 28, 2023
1 parent b926758 commit be7c950
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engine/events/print_unown.asm
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ _UnownPrinter:
ldh a, [hJoyPressed]
vc_patch Forbid_printing_Unown
if DEF(_GOLD_VC) || DEF(_SILVER_VC)
and 0
and NO_INPUT
else
and A_BUTTON
endc
Expand Down
2 changes: 1 addition & 1 deletion engine/pokemon/mail_2.asm
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ReadAnyMail:
jr z, .loop
vc_patch Forbid_printing_mail
if DEF(_GOLD_VC) || DEF(_SILVER_VC)
and 0
and NO_INPUT
else
and START
endc
Expand Down

0 comments on commit be7c950

Please sign in to comment.