Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 authored Nov 28, 2024
1 parent 9ad6f2f commit 3cfc471
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engine/events/field_moves.asm
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ HeadbuttTreeGFX:
INCBIN "gfx/overworld/headbutt_tree.2bpp"

HideHeadbuttTree:
; Replaces headbutted tree with grass tile at hardcoded value $05
; Assumes all tilesets have grass at tile $05
; Replaces all four headbutted tree tiles with tile $05
; Assumes any tileset with headbutt trees has grass at tile $05
xor a
ldh [hBGMapMode], a
ld a, [wPlayerDirection]
Expand All @@ -94,7 +94,7 @@ HideHeadbuttTree:
ld h, [hl]
ld l, a

ld a, $05 ; Assumed grass tile
ld a, $05 ; grass tile
ld [hli], a
ld [hld], a
ld bc, SCREEN_WIDTH
Expand Down

0 comments on commit 3cfc471

Please sign in to comment.