From be7c950f05a68d760c38a76f0bbbea8b7d61c09b Mon Sep 17 00:00:00 2001 From: Idain Date: Sun, 28 May 2023 10:12:33 -0400 Subject: [PATCH] Use NO_INPUT instead of magic number (pret/pokecrystal#1051) This is for the Virtual Console builds, where it disables the print functions of Unown and Mail. --- engine/events/print_unown.asm | 2 +- engine/pokemon/mail_2.asm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/events/print_unown.asm b/engine/events/print_unown.asm index 6375f40d..89c08894 100644 --- a/engine/events/print_unown.asm +++ b/engine/events/print_unown.asm @@ -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 diff --git a/engine/pokemon/mail_2.asm b/engine/pokemon/mail_2.asm index 74435292..88510551 100644 --- a/engine/pokemon/mail_2.asm +++ b/engine/pokemon/mail_2.asm @@ -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