aboutsummaryrefslogtreecommitdiffstats
path: root/engine/gfx
diff options
context:
space:
mode:
authorSylvie <35663410+Rangi42@users.noreply.github.com>2024-09-24 09:33:33 -0400
committerGitHub <noreply@github.com>2024-09-24 09:33:33 -0400
commitb5d2540e7c56d7ae596ba49d105b1a01dd6ffd29 (patch)
treee5cd5ae7b6f06ce33f495ad3ba995761ec93f72f /engine/gfx
parentFix comment: Road -> Roar (#466) (diff)
downloadpokeyellow-b5d2540e7c56d7ae596ba49d105b1a01dd6ffd29.tar.gz
pokeyellow-b5d2540e7c56d7ae596ba49d105b1a01dd6ffd29.tar.xz
pokeyellow-b5d2540e7c56d7ae596ba49d105b1a01dd6ffd29.zip
Identify more bit flags (#465)
* Identify more bit flags * Space
Diffstat (limited to 'engine/gfx')
-rw-r--r--engine/gfx/mon_icons.asm2
-rw-r--r--engine/gfx/screen_effects.asm2
2 files changed, 2 insertions, 2 deletions
diff --git a/engine/gfx/mon_icons.asm b/engine/gfx/mon_icons.asm
index e7016a1d..24e9446e 100644
--- a/engine/gfx/mon_icons.asm
+++ b/engine/gfx/mon_icons.asm
@@ -269,7 +269,7 @@ GetPartyMonSpriteID:
ld d, 0
add hl, de
ld a, [hl]
- bit 0, c
+ bit 0, c ; even or odd?
jr nz, .skipSwap
swap a ; use lower nybble if pokedex num is even
.skipSwap
diff --git a/engine/gfx/screen_effects.asm b/engine/gfx/screen_effects.asm
index c7a68734..7d0ccf7e 100644
--- a/engine/gfx/screen_effects.asm
+++ b/engine/gfx/screen_effects.asm
@@ -61,7 +61,7 @@ PredefShakeScreenHorizontally:
ldh a, [hMutateWX]
xor b
ldh [hMutateWX], a
- bit 7, a
+ bit 7, a ; negative?
jr z, .skipZeroing
xor a ; zero a if it's negative
.skipZeroing