summaryrefslogtreecommitdiff
path: root/engine/battle
diff options
context:
space:
mode:
Diffstat (limited to 'engine/battle')
-rwxr-xr-xengine/battle/animations.asm4
-rw-r--r--engine/battle/battle_transitions.asm10
-rwxr-xr-xengine/battle/core.asm10
3 files changed, 12 insertions, 12 deletions
diff --git a/engine/battle/animations.asm b/engine/battle/animations.asm
index cdd28422..3321b738 100755
--- a/engine/battle/animations.asm
+++ b/engine/battle/animations.asm
@@ -2184,7 +2184,7 @@ Func_7980c: ; 7980c (1e:580c)
push bc
ld e, a
ld d, $0
- ld hl, wTileMap
+ hlCoord 0, 0
add hl, de
ld bc, $707
call ClearScreenArea
@@ -2206,7 +2206,7 @@ GetMonSpriteTileMapPointerFromRowCount: ; 79820 (1e:5820)
.enemyTurn
ld a, 12
.next
- ld hl, wTileMap
+ hlCoord 0, 0
ld e, a
ld d, 0
add hl, de
diff --git a/engine/battle/battle_transitions.asm b/engine/battle/battle_transitions.asm
index b231459d..3315b36a 100644
--- a/engine/battle/battle_transitions.asm
+++ b/engine/battle/battle_transitions.asm
@@ -231,7 +231,7 @@ BattleTransition_Spiral: ; 70a72 (1c:4a72)
BattleTransition_InwardSpiral: ; 70aaa (1c:4aaa)
ld a, $7
ld [wWhichTrade], a
- ld hl, wTileMap
+ hlCoord 0, 0
ld c, $11
ld de, $14
call BattleTransition_InwardSpiral_
@@ -410,7 +410,7 @@ BattleTransition_Split: ; 70bca (1c:4bca)
ld bc, $ffd8
call BattleTransition_CopyTiles1
hlCoord 0, 1
- ld de, wTileMap
+ deCoord 0, 0
ld bc, $28
call BattleTransition_CopyTiles1
hlCoord 18, 0
@@ -418,7 +418,7 @@ BattleTransition_Split: ; 70bca (1c:4bca)
ld bc, $fffe
call BattleTransition_CopyTiles2
hlCoord 1, 0
- ld de, wTileMap
+ deCoord 0, 0
ld bc, $2
call BattleTransition_CopyTiles2
call BattleTransition_TransferDelay3
@@ -514,7 +514,7 @@ BattleTransition_CopyTiles2: ; 70c3f (1c:4c3f)
; used for high level wild dungeon battles
BattleTransition_VerticalStripes: ; 70c7e (1c:4c7e)
ld c, $12
- ld hl, wTileMap
+ hlCoord 0, 0
deCoord 1, 17
xor a
ld [H_AUTOBGTRANSFERENABLED], a
@@ -553,7 +553,7 @@ BattleTransition_VerticalStripes_: ; 70caa (1c:4caa)
; used for low level wild dungeon battles
BattleTransition_HorizontalStripes: ; 70cb4 (1c:4cb4)
ld c, $14
- ld hl, wTileMap
+ hlCoord 0, 0
deCoord 19, 1
xor a
ld [H_AUTOBGTRANSFERENABLED], a
diff --git a/engine/battle/core.asm b/engine/battle/core.asm
index ec67d094..52beca1a 100755
--- a/engine/battle/core.asm
+++ b/engine/battle/core.asm
@@ -117,7 +117,7 @@ SlidePlayerAndEnemySilhouettesOnScreen: ; 3c04c (f:404c)
or c
jr nz, .clearBackgroundLoop
; copy the work RAM tile map to VRAM
- ld hl, wTileMap
+ hlCoord 0, 0
ld de, vBGMap0
ld b, 18 ; number of rows
.copyRowLoop
@@ -855,7 +855,7 @@ FaintEnemyPokemon: ; 0x3c567
hlCoord 12, 5
deCoord 12, 6
call SlideDownFaintedMonPic
- ld hl, wTileMap
+ hlCoord 0, 0
ld bc, $40b
call ClearScreenArea
ld a, [W_ISINBATTLE]
@@ -1214,7 +1214,7 @@ HandlePlayerBlackOut: ; 3c837 (f:4837)
ld a, [W_CUROPPONENT]
cp $c8 + SONY1
jr nz, .notSony1Battle
- ld hl, wTileMap ; sony 1 battle
+ hlCoord 0, 0 ; sony 1 battle
ld bc, $815
call ClearScreenArea
call ScrollTrainerPicAfterBattle
@@ -1489,7 +1489,7 @@ EnemySendOutFirstMon: ; 3c92a (f:492a)
call LoadScreenTilesFromBuffer1
.next4
call ClearSprites
- ld hl,wTileMap
+ hlCoord 0, 0
ld bc,$040B
call ClearScreenArea
ld b,1
@@ -1952,7 +1952,7 @@ DrawPlayerHUDAndHPBar: ; 3cd60 (f:4d60)
DrawEnemyHUDAndHPBar: ; 3cdec (f:4dec)
xor a
ld [H_AUTOBGTRANSFERENABLED], a
- ld hl, wTileMap
+ hlCoord 0, 0
ld bc, $40c
call ClearScreenArea
callab PlaceEnemyHUDTiles