Updates to more closely sync with pokegold

This commit is contained in:
Rangi
2020-10-29 23:23:57 -04:00
parent 7883e8f431
commit ba5bc304f9
20 changed files with 94 additions and 89 deletions

View File

@@ -22,7 +22,7 @@ GameTimer::
ldh [rSVBK], a
ret
.Function
.Function:
; Increment the game timer by one frame.
; The game timer is capped at 999:59:59.00.

View File

@@ -124,12 +124,12 @@ LoadMetatiles::
ld a, [wOverworldMapAnchor + 1]
ld d, a
ld hl, wSurroundingTiles
ld b, SURROUNDING_HEIGHT / METATILE_WIDTH ; 5
ld b, SCREEN_META_HEIGHT
.row
push de
push hl
ld c, SURROUNDING_WIDTH / METATILE_WIDTH ; 6
ld c, SCREEN_META_WIDTH
.col
push de
@@ -195,7 +195,7 @@ endr
add hl, de
pop de
ld a, [wMapWidth]
add 6
add MAP_CONNECTION_PADDING_WIDTH * 2
add e
ld e, a
jr nc, .ok2

View File

@@ -257,6 +257,7 @@ MenuBoxCoord2Tile::
ld c, a
ld a, [wMenuBorderTopCoord]
ld b, a
; fallthrough
Coord2Tile::
; Return the address of wTilemap(c, b) in hl.
@@ -430,12 +431,12 @@ _YesNoBox::
ld hl, YesNoMenuHeader
call CopyMenuHeader
pop bc
; This seems to be an overflow prevention, but
; it was coded wrong.
; This seems to be an overflow prevention,
; but it was coded wrong.
ld a, b
cp SCREEN_WIDTH - 6
cp SCREEN_WIDTH - 1 - 5
jr nz, .okay ; should this be "jr nc"?
ld a, SCREEN_WIDTH - 6
ld a, SCREEN_WIDTH - 1 - 5
ld b, a
.okay