diff options
author | mid-kid <esteve.varela@gmail.com> | 2019-11-18 18:16:50 +0100 |
---|---|---|
committer | mid-kid <esteve.varela@gmail.com> | 2019-11-18 18:21:57 +0100 |
commit | 739a60b33c54021c975f22d627e4b5e40206fe37 (patch) | |
tree | b451d2dc8e34a5b40a5c8316223c3cc4a7c8600d /home/map.asm | |
parent | 1c41b2e579315ca582157fb3c824bda8ce4ecbbe (diff) |
Make the map setup commands match the actual function names better
These functions used as map setup commands are used in other places,
too, so I can't prefix them under the same. The names should match
except I won't repeat "map" in a map setup command name.
Diffstat (limited to 'home/map.asm')
-rw-r--r-- | home/map.asm | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/home/map.asm b/home/map.asm index 9e0c12e00..4f43830a6 100644 --- a/home/map.asm +++ b/home/map.asm @@ -380,11 +380,11 @@ LoadMapAttributes:: call CopyMapPartialAndAttributes call SwitchToMapScriptsBank call ReadMapScripts - xor a ; do not skip object_events + xor a ; do not skip object events call ReadMapEvents ret -LoadMapAttributes_SkipPeople:: +LoadMapAttributes_SkipObjects:: call CopyMapPartialAndAttributes call SwitchToMapScriptsBank call ReadMapScripts @@ -656,7 +656,7 @@ ClearObjectStructs:: jr nz, .loop ret -RestoreFacingAfterWarp:: +GetWarpDestCoords:: call GetMapScriptsBank rst Bankswitch @@ -684,7 +684,7 @@ endr call .backup .skip - farcall GetCoordOfUpperLeftCorner + farcall GetMapScreenCoords ret .backup @@ -1437,7 +1437,7 @@ SaveScreen:: .vertical ld b, SCREEN_META_WIDTH ld c, SCREEN_META_HEIGHT - 1 - jr SaveScreen_LoadNeighbor + jr SaveScreen_LoadConnection .left ld de, wScreenSave + 1 @@ -1449,9 +1449,9 @@ SaveScreen:: .horizontal ld b, SCREEN_META_WIDTH - 1 ld c, SCREEN_META_HEIGHT - jr SaveScreen_LoadNeighbor + jr SaveScreen_LoadConnection -LoadNeighboringBlockData:: +LoadConnectionBlockData:: ld hl, wOverworldMapAnchor ld a, [hli] ld h, [hl] @@ -1463,7 +1463,7 @@ LoadNeighboringBlockData:: ld b, SCREEN_META_WIDTH ld c, SCREEN_META_HEIGHT -SaveScreen_LoadNeighbor:: +SaveScreen_LoadConnection:: .row push bc push hl @@ -1480,7 +1480,6 @@ SaveScreen_LoadNeighbor:: ld e, a jr nc, .okay inc d - .okay pop hl ldh a, [hConnectionStripLength] @@ -2259,7 +2258,7 @@ GetFishingGroup:: pop de ret -LoadTileset:: +LoadMapTileset:: push hl push bc |