diff options
| author | Narishma-gb <194818981+Narishma-gb@users.noreply.github.com> | 2025-01-30 23:26:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-30 17:26:55 -0500 |
| commit | 43f21cc4948682b51b4c72bcef38631f95b47bfe (patch) | |
| tree | 2f647622559fce6bae9d4ebb1d669c5cec3db426 /engine/battle | |
| parent | Consistently refer to CGB, not GBC (#491) (diff) | |
| download | pokeyellow-43f21cc4948682b51b4c72bcef38631f95b47bfe.tar.gz pokeyellow-43f21cc4948682b51b4c72bcef38631f95b47bfe.tar.xz pokeyellow-43f21cc4948682b51b4c72bcef38631f95b47bfe.zip | |
Fix some label typos, and add some constants instead of raw numbers (#492)
Diffstat (limited to 'engine/battle')
| -rw-r--r-- | engine/battle/animations.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/battle/animations.asm b/engine/battle/animations.asm index a6d12012..ce6c6d5d 100644 --- a/engine/battle/animations.asm +++ b/engine/battle/animations.asm @@ -1935,7 +1935,7 @@ AnimationSubstitute: ; Changes the pokemon's sprite to the mini sprite ld hl, wTempPic xor a - ld bc, $310 + ld bc, 7 * 7 tiles call FillMemory ldh a, [hWhoseTurn] and a @@ -2120,7 +2120,7 @@ GetMonSpriteTileMapPointerFromRowCount: ldh a, [hWhoseTurn] and a jr nz, .enemyTurn - ld a, 20 * 5 + 1 + ld a, 5 * SCREEN_WIDTH + 1 jr .next .enemyTurn ld a, 12 @@ -2133,7 +2133,7 @@ GetMonSpriteTileMapPointerFromRowCount: sub b and a jr z, .done - ld de, 20 + ld de, SCREEN_WIDTH .loop add hl, de dec a @@ -2294,7 +2294,7 @@ CopyTileIDs: dec c jr nz, .columnLoop pop hl - ld bc, 20 + ld bc, SCREEN_WIDTH add hl, bc pop bc dec b |
