Fix some mobile script and map sign things

This commit is contained in:
mid-kid
2019-09-23 15:09:49 +02:00
parent 29deef86f8
commit 7111ae8e58
6 changed files with 24 additions and 20 deletions

View File

@@ -15,13 +15,13 @@ ReturnFromMapSetupScript::
call GetWorldMapLocation
ld [wCurLandmark], a
call .CheckNationalParkGate
jr z, .nationalparkgate
jr z, .gate
call GetMapEnvironment
cp GATE
jr nz, .not_gate
.nationalparkgate
.gate
ld a, -1
ld [wCurLandmark], a
@@ -70,7 +70,7 @@ ReturnFromMapSetupScript::
; These landmarks do not get pop-up signs.
cp -1
ret z
cp SPECIAL_MAP
cp SPECIAL_MAP ; redundant check
ret z
cp RADIO_TOWER
ret z
@@ -105,11 +105,11 @@ PlaceMapNameSign::
cp 60
ret z
cp 59
jr nz, .skip2
jr nz, .already_initialized
call InitMapNameFrame
call PlaceMapNameCenterAlign
farcall HDMATransfer_OnlyTopFourRows
.skip2
.already_initialized
ld a, $80
ld a, $70
ldh [rWY], a