summaryrefslogtreecommitdiff
path: root/engine/overworld/replace_tile_block.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/overworld/replace_tile_block.asm')
-rw-r--r--engine/overworld/replace_tile_block.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/overworld/replace_tile_block.asm b/engine/overworld/replace_tile_block.asm
index 32c652ea..8577b9e7 100644
--- a/engine/overworld/replace_tile_block.asm
+++ b/engine/overworld/replace_tile_block.asm
@@ -2,7 +2,7 @@
; and redraws the map view if necessary
; b = Y
; c = X
-ReplaceTileBlock: ; ed1b (3:6d1b)
+ReplaceTileBlock:
call GetPredefRegisters
ld hl, wOverworldMap
ld a, [wCurMapWidth]
@@ -46,7 +46,7 @@ ReplaceTileBlock: ; ed1b (3:6d1b)
call CompareHLWithBC
ret c ; return if the replaced tile block is above the map view in memory
-RedrawMapView: ; ed59 (3:6d59)
+RedrawMapView:
ld a, [wIsInBattle]
inc a
ret z
@@ -117,10 +117,10 @@ RedrawMapView: ; ed59 (3:6d59)
ld [H_AUTOBGTRANSFERENABLED], a
ret
-CompareHLWithBC: ; edcb (3:6dcb)
+CompareHLWithBC:
ld a, h
sub b
ret nz
ld a, l
sub c
- ret \ No newline at end of file
+ ret