mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Use constants to delineate map types, and factor out more data
This commit is contained in:
parent
70eac3a1f7
commit
bfd9f617c9
17 changed files with 126 additions and 135 deletions
|
|
@ -255,7 +255,7 @@ ReadSpriteSheetData:
|
|||
; sets carry if the map is a city or route, unsets carry if not
|
||||
InitOutsideMapSprites:
|
||||
ld a, [wCurMap]
|
||||
cp REDS_HOUSE_1F ; is the map a city or a route (map ID less than $25)?
|
||||
cp FIRST_INDOOR_MAP ; is the map a city or a route?
|
||||
ret nc ; if not, return
|
||||
ld hl, MapSpriteSets
|
||||
add l
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
MarkTownVisitedAndLoadMissableObjects::
|
||||
ld a, [wCurMap]
|
||||
cp ROUTE_1
|
||||
cp FIRST_ROUTE_MAP
|
||||
jr nc, .notInTown
|
||||
ld c, a
|
||||
ld b, FLAG_SET
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue