You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Updates to more closely sync with pokegold
This commit is contained in:
@@ -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.
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user