Fix some constants around wLinkMode

This commit is contained in:
mid-kid 2019-11-08 22:03:08 +01:00
parent 176257ea6f
commit 77803f571f
6 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
; link types ; wLinkMode
const_def const_def
const LINK_NULL ; 0 const LINK_NULL ; 0
const LINK_TIMECAPSULE ; 1 const LINK_TIMECAPSULE ; 1

View File

@ -2088,7 +2088,7 @@ EnterTimeCapsule:
call DelayFrames call DelayFrames
xor a xor a
ldh [hVBlank], a ldh [hVBlank], a
inc a inc a ; LINK_TIMECAPSULE
ld [wLinkMode], a ld [wLinkMode], a
ret ret

View File

@ -272,9 +272,9 @@ Request1bpp::
ldh a, [hTilesPerCycle] ldh a, [hTilesPerCycle]
push af push af
ld a, $8 ld a, $8
ldh [hTilesPerCycle], a ldh [hTilesPerCycle], a
ld a, [wLinkMode] ld a, [wLinkMode]
cp LINK_MOBILE cp LINK_MOBILE
jr nz, .NotMobile jr nz, .NotMobile

View File

@ -691,7 +691,7 @@ Function1163c0:
ldh [rSVBK], a ldh [rSVBK], a
farcall ReloadMapPart farcall ReloadMapPart
ld a, [wLinkMode] ld a, [wLinkMode]
cp $4 cp LINK_MOBILE
jr z, .asm_11642a jr z, .asm_11642a
ld a, $8 ld a, $8
ld [wMusicFade], a ld [wMusicFade], a

View File

@ -7322,7 +7322,7 @@ Function11b7e5:
farcall Function17d1f1 farcall Function17d1f1
ld a, $1 ld a, $1
ld [wForceEvolution], a ld [wForceEvolution], a
ld a, $2 ld a, LINK_TRADECENTER
ld [wLinkMode], a ld [wLinkMode], a
farcall EvolvePokemon farcall EvolvePokemon
xor a xor a

View File

@ -295,7 +295,7 @@ Function17d0f3:
farcall Function17d1f1 farcall Function17d1f1
ld a, $1 ld a, $1
ld [wForceEvolution], a ld [wForceEvolution], a
ld a, $2 ld a, LINK_TRADECENTER
ld [wLinkMode], a ld [wLinkMode], a
farcall EvolvePokemon farcall EvolvePokemon
xor a xor a