From 8fafca714c07500d1d87bba224f12cf9cc2c8789 Mon Sep 17 00:00:00 2001 From: Sylvie <35663410+Rangi42@users.noreply.github.com> Date: Tue, 16 Jul 2024 13:02:54 -0400 Subject: Identify various flag labels and bit constants (#454) --- home/text_script.asm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'home/text_script.asm') diff --git a/home/text_script.asm b/home/text_script.asm index ceae1a0a..5c90a981 100644 --- a/home/text_script.asm +++ b/home/text_script.asm @@ -128,8 +128,8 @@ CloseTextDisplay:: call InitMapSprites ; reload sprite tile pattern data (since it was partially overwritten by text tile patterns) ld hl, wFontLoaded res 0, [hl] - ld a, [wd732] - bit 3, a ; used fly warp + ld a, [wStatusFlags6] + bit BIT_FLY_WARP, a call z, LoadPlayerSpriteGraphics call LoadCurrentMapView pop af @@ -196,9 +196,9 @@ PokemonFaintedText:: DisplayPlayerBlackedOutText:: ld hl, PlayerBlackedOutText call PrintText - ld a, [wd732] - res 5, a ; reset forced to use bike bit - ld [wd732], a + ld a, [wStatusFlags6] + res BIT_ALWAYS_ON_BIKE, a + ld [wStatusFlags6], a jp HoldTextDisplayOpen PlayerBlackedOutText:: -- cgit v1.3.1-sl0p