diff options
author | YamaArashi <shadow962@live.com> | 2016-10-29 10:32:03 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-10-29 10:32:03 -0700 |
commit | 77c3e22a4ecd3dc81918f00c548cef7c634f3419 (patch) | |
tree | 8653190480bb8f7673e94b4083248e634d62fa77 /scripts | |
parent | 4d61c351726b38b22e0606df23bd2fdfb13640cc (diff) |
use more HRAM constants
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/tradecenter.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/tradecenter.asm b/scripts/tradecenter.asm index a200e719..80efe4f9 100755 --- a/scripts/tradecenter.asm +++ b/scripts/tradecenter.asm @@ -1,7 +1,7 @@ TradeCenterScript: call EnableAutoTextBoxDrawing - ld a, [$ffaa] - cp $2 + ld a, [hSerialConnectionStatus] + cp USING_INTERNAL_CLOCK ld a, SPRITE_FACING_LEFT jr z, .next ld a, SPRITE_FACING_RIGHT @@ -21,8 +21,8 @@ TradeCenterScript: ld [hl], a ld a, SPRITE_FACING_LEFT ld [wSpriteStateData1 + $19], a - ld a, [$ffaa] - cp $2 + ld a, [hSerialConnectionStatus] + cp USING_INTERNAL_CLOCK ret z ld a, $7 ld [wSpriteStateData2 + $15], a |