Define MAPGROUP_* constants and verify MapGroup_* table sizes

This commit is contained in:
Rangi
2021-03-10 21:06:06 -05:00
parent 71073a5f3b
commit dbabd8b4a9
9 changed files with 139 additions and 77 deletions

View File

@@ -176,14 +176,14 @@ EnterMapWarp:
; Dig and Escape Rope should not take you to them.
ld a, [wPrevMapGroup]
cp GROUP_MOUNT_MOON_SQUARE
jr nz, .not_mt_moon_square_or_tin_tower_roof
assert GROUP_MOUNT_MOON_SQUARE == GROUP_TIN_TOWER_ROOF
jr nz, .not_mt_moon_or_tin_tower
ld a, [wPrevMapNumber]
cp MAP_MOUNT_MOON_SQUARE
ret z
cp MAP_TIN_TOWER_ROOF
ret z
.not_mt_moon_or_tin_tower
.not_mt_moon_square_or_tin_tower_roof
ld a, [wPrevWarp]
ld [wDigWarpNumber], a