summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2018-01-30 14:55:20 -0500
committerluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2018-01-30 14:55:20 -0500
commit4a3384ab09c735f1a8cac54dddf0e5741f1875a7 (patch)
tree197f72b85e04e642464e00f1fcd1d572e2763579
parent0b45e2e846c8b2feb7d2c4c4ebb854db07cf06fd (diff)
wSpritesEnd -> wVirtualOAMEnd.
-rw-r--r--engine/battle_anims/anim_commands.asm4
-rwxr-xr-xengine/events/celebi.asm2
-rwxr-xr-xengine/events/field_moves.asm4
-rw-r--r--engine/map_objects.asm4
-rwxr-xr-xengine/pokegear.asm8
-rwxr-xr-xengine/sprites.asm6
-rw-r--r--home.asm2
-rw-r--r--wram.asm2
8 files changed, 16 insertions, 16 deletions
diff --git a/engine/battle_anims/anim_commands.asm b/engine/battle_anims/anim_commands.asm
index a063a213a..ca4928233 100644
--- a/engine/battle_anims/anim_commands.asm
+++ b/engine/battle_anims/anim_commands.asm
@@ -272,7 +272,7 @@ endr
.delete
ld hl, wVirtualOAM
- ld c, wSpritesEnd - wVirtualOAM
+ ld c, wVirtualOAMEnd - wVirtualOAM
xor a
.loop2
ld [hli], a
@@ -1502,7 +1502,7 @@ BattleAnim_UpdateOAM_All: ; cc96e
ld h, HIGH(wVirtualOAM)
.loop2
ld a, l
- cp LOW(wSpritesEnd)
+ cp LOW(wVirtualOAMEnd)
jr nc, .done
xor a
ld [hli], a
diff --git a/engine/events/celebi.asm b/engine/events/celebi.asm
index 2c3950f0b..fe4a490f2 100755
--- a/engine/events/celebi.asm
+++ b/engine/events/celebi.asm
@@ -64,7 +64,7 @@ endr
dec c
jr nz, .OAMloop
ld hl, wVirtualOAMSprite04
- ld bc, wSpritesEnd - wVirtualOAMSprite04
+ ld bc, wVirtualOAMEnd - wVirtualOAMSprite04
xor a
call ByteFill
ret
diff --git a/engine/events/field_moves.asm b/engine/events/field_moves.asm
index 7ff726af2..0f12338e0 100755
--- a/engine/events/field_moves.asm
+++ b/engine/events/field_moves.asm
@@ -63,7 +63,7 @@ ShakeHeadbuttTree: ; 8c80a
ld [hBGMapMode], a
farcall ClearSpriteAnims
ld hl, wVirtualOAMSprite36
- ld bc, wSpritesEnd - wVirtualOAMSprite36
+ ld bc, wVirtualOAMEnd - wVirtualOAMSprite36
xor a
call ByteFill
ld de, Font
@@ -405,7 +405,7 @@ endr
dec c
jr nz, .OAMloop
ld hl, wVirtualOAMSprite04
- ld bc, wSpritesEnd - wVirtualOAMSprite04
+ ld bc, wVirtualOAMEnd - wVirtualOAMSprite04
xor a
call ByteFill
ret
diff --git a/engine/map_objects.asm b/engine/map_objects.asm
index 85e5ccb23..b3efc5fb7 100644
--- a/engine/map_objects.asm
+++ b/engine/map_objects.asm
@@ -2821,7 +2821,7 @@ _UpdateSprites:: ; 5920
.fill
ld a, [wVramState]
bit 1, a
- ld b, LOW(wSpritesEnd)
+ ld b, LOW(wVirtualOAMEnd)
jr z, .ok
ld b, 28 * SPRITEOAMSTRUCT_LENGTH
.ok
@@ -3047,7 +3047,7 @@ InitSprites: ; 5991
ld a, [hli]
ld [hUsedSpriteTile], a
add c
- cp LOW(wSpritesEnd)
+ cp LOW(wVirtualOAMEnd)
jr nc, .full
.addsprite
ld a, [hFFC0]
diff --git a/engine/pokegear.asm b/engine/pokegear.asm
index 1b816725b..ea2afdc78 100755
--- a/engine/pokegear.asm
+++ b/engine/pokegear.asm
@@ -2589,7 +2589,7 @@ Pokedex_GetArea: ; 91d11
.copy_sprites
hlcoord 0, 0
ld de, wVirtualOAM
- ld bc, wSpritesEnd - wVirtualOAM
+ ld bc, wVirtualOAMEnd - wVirtualOAM
call CopyBytes
ret
@@ -2656,7 +2656,7 @@ Pokedex_GetArea: ; 91d11
.done_nest
ld hl, wVirtualOAM
decoord 0, 0
- ld bc, wSpritesEnd - wVirtualOAM
+ ld bc, wVirtualOAMEnd - wVirtualOAM
call CopyBytes
ret
@@ -2701,7 +2701,7 @@ Pokedex_GetArea: ; 91d11
.clear_oam
ld hl, wVirtualOAMSprite04
- ld bc, wSpritesEnd - wVirtualOAMSprite04
+ ld bc, wVirtualOAMEnd - wVirtualOAMSprite04
xor a
call ByteFill
ret
@@ -2742,7 +2742,7 @@ Pokedex_GetArea: ; 91d11
.clear
ld hl, wVirtualOAM
- ld bc, wSpritesEnd - wVirtualOAM
+ ld bc, wVirtualOAMEnd - wVirtualOAM
xor a
call ByteFill
scf
diff --git a/engine/sprites.asm b/engine/sprites.asm
index 3451687fc..277b75124 100755
--- a/engine/sprites.asm
+++ b/engine/sprites.asm
@@ -62,9 +62,9 @@ DoNextFrameForAllSprites: ; 8cf7a
ld l, a
ld h, HIGH(wVirtualOAM)
-.loop2 ; Clear (wVirtualOAM + [wCurrSpriteOAMAddr] --> wSpritesEnd)
+.loop2 ; Clear (wVirtualOAM + [wCurrSpriteOAMAddr] --> wVirtualOAMEnd)
ld a, l
- cp LOW(wSpritesEnd)
+ cp LOW(wVirtualOAMEnd)
jr nc, .done
xor a
ld [hli], a
@@ -302,7 +302,7 @@ UpdateAnimFrame: ; 8d04c
inc de
ld a, e
ld [wCurrSpriteOAMAddr], a
- cp LOW(wSpritesEnd)
+ cp LOW(wVirtualOAMEnd)
jr nc, .reached_the_end
dec c
jr nz, .loop
diff --git a/home.asm b/home.asm
index b5d066639..2f628a735 100644
--- a/home.asm
+++ b/home.asm
@@ -170,7 +170,7 @@ INCLUDE "home/double_speed.asm"
ClearSprites:: ; 300b
; Erase OAM data
ld hl, wVirtualOAM
- ld b, wSpritesEnd - wVirtualOAM
+ ld b, wVirtualOAMEnd - wVirtualOAM
xor a
.loop
ld [hli], a
diff --git a/wram.asm b/wram.asm
index 93c0a8cc2..1a14a0171 100644
--- a/wram.asm
+++ b/wram.asm
@@ -343,7 +343,7 @@ wVirtualOAMSprite36:: sprite_oam_struct wVirtualOAMSprite36
wVirtualOAMSprite37:: sprite_oam_struct wVirtualOAMSprite37
wVirtualOAMSprite38:: sprite_oam_struct wVirtualOAMSprite38
wVirtualOAMSprite39:: sprite_oam_struct wVirtualOAMSprite39
-wSpritesEnd::
+wVirtualOAMEnd::
SECTION "Tilemap", WRAM0