Rename the object_struct field labels and constants (#1005)

Fixes #990
This commit is contained in:
Rangi
2022-09-12 09:15:44 -04:00
committed by GitHub
parent 4c239a6f65
commit 41d5ea0482
30 changed files with 442 additions and 431 deletions

View File

@@ -158,7 +158,7 @@ UpdateOverworldMap:
or HIGH(vBGMap0)
ld [wBGMapAnchor + 1], a
.not_overflowed
ld hl, wMetatileStandingY
ld hl, wPlayerMetatileY
inc [hl]
ld a, [hl]
cp 2 ; was 1
@@ -189,7 +189,7 @@ UpdateOverworldMap:
or HIGH(vBGMap0)
ld [wBGMapAnchor + 1], a
.not_underflowed
ld hl, wMetatileStandingY
ld hl, wPlayerMetatileY
dec [hl]
ld a, [hl]
cp -1 ; was 0
@@ -221,7 +221,7 @@ UpdateOverworldMap:
and $1f
or d
ld [wBGMapAnchor], a
ld hl, wMetatileStandingX
ld hl, wPlayerMetatileX
dec [hl]
ld a, [hl]
cp -1
@@ -250,7 +250,7 @@ UpdateOverworldMap:
and $1f
or d
ld [wBGMapAnchor], a
ld hl, wMetatileStandingX
ld hl, wPlayerMetatileX
inc [hl]
ld a, [hl]
cp 2