From 8aa08addbaa20969a8a4fafb7d6f91091e5d1cac Mon Sep 17 00:00:00 2001 From: Rangi Date: Sun, 29 Jul 2018 01:13:25 -0400 Subject: [PATCH] wLuckyNumberDigitsBuffer --- engine/events/lucky_number.asm | 6 +++--- mobile/mobile_12_2.asm | 2 +- wram.asm | 9 +++------ 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/engine/events/lucky_number.asm b/engine/events/lucky_number.asm index f77b3c395..1c3a8dc02 100644 --- a/engine/events/lucky_number.asm +++ b/engine/events/lucky_number.asm @@ -127,14 +127,14 @@ CheckForLuckyNumberWinners: ld hl, wBuffer1 lb bc, PRINTNUM_LEADINGZEROS | 2, 5 call PrintNum - ld hl, wLuckyNumberDigit1Buffer + ld hl, wLuckyNumberDigitsBuffer ld de, wLuckyIDNumber lb bc, PRINTNUM_LEADINGZEROS | 2, 5 call PrintNum ld b, 5 ld c, 0 - ld hl, wLuckyNumberDigit5Buffer - ld de, wBuffer5 + ld hl, wLuckyNumberDigitsBuffer + 4 + ld de, wBuffer1 + 4 .loop ld a, [de] cp [hl] diff --git a/mobile/mobile_12_2.asm b/mobile/mobile_12_2.asm index 4254cb22e..d85b0eba7 100644 --- a/mobile/mobile_12_2.asm +++ b/mobile/mobile_12_2.asm @@ -268,7 +268,7 @@ Function4a9d7: call GetNick ld h, d ld l, e - ld de, wEndFlypoint + ld de, wd006 ld bc, 6 call CopyBytes ld a, [wd003] diff --git a/wram.asm b/wram.asm index 5bfc28ec5..99b7c77a5 100644 --- a/wram.asm +++ b/wram.asm @@ -1675,11 +1675,7 @@ wRadioTextEnd:: NEXTU ; d002 ; lucky number show -wLuckyNumberDigit1Buffer:: db -wLuckyNumberDigit2Buffer:: db -wLuckyNumberDigit3Buffer:: db -wLuckyNumberDigit4Buffer:: db -wLuckyNumberDigit5Buffer:: db +wLuckyNumberDigitsBuffer:: ds 5 NEXTU ; d002 ; movement buffer data @@ -1731,7 +1727,8 @@ wd003:: db wd004:: db ; mobile? - ds 3 + ds 1 +wd006:: ds 2 wd008:: ds 2 ds 2 wd00c:: ds 1