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 LINK_NULL ; 0
const LINK_TIMECAPSULE ; 1

View File

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

View File

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

View File

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

View File

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

View File

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