diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2017-09-01 22:09:59 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2017-09-01 22:09:59 -0400 |
commit | a4b29bdd2b3cb2ff3fc69fc69e0725ce50bd828a (patch) | |
tree | c196798236743f4b7240e5789919dd6f913fa45c /src/trade.c | |
parent | ff1da361388c9f38813e6622839e702740b2974c (diff) |
sub_8048C70
Diffstat (limited to 'src/trade.c')
-rw-r--r-- | src/trade.c | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/src/trade.c b/src/trade.c index 38cde38de..5b0ea50fe 100644 --- a/src/trade.c +++ b/src/trade.c @@ -69,7 +69,9 @@ struct TradeEwramSubstruct { /*0x0041*/ u8 unk_0041; /*0x0042*/ u8 playerPartyCount; /*0x0043*/ u8 friendPartyCount; - /*0x0044*/ u8 filler_0044[0x31]; + /*0x0044*/ u8 tradeIconsActive[12]; + /*0x0050*/ u8 unk_0050; + /*0x0051*/ u8 filler_0044[0x24]; /*0x0075*/ u8 unk_0075; /*0x0076*/ u8 filler_0076[4]; /*0x007a*/ u8 unk_007a; @@ -1184,6 +1186,33 @@ void sub_8048B0C(u8 a0) } #endif +void sub_8048C70(void) +{ + int i; + for (i = 0; i < PARTY_SIZE; i ++) + { + if (i < gUnknown_03004824->playerPartyCount) + { + gSprites[gUnknown_03004824->playerPartyIcons[i]].invisible = FALSE; + gUnknown_03004824->tradeIconsActive[i] = TRUE; + } + else + { + gUnknown_03004824->tradeIconsActive[i] = FALSE; + } + if (i < gUnknown_03004824->friendPartyCount) + { + gSprites[gUnknown_03004824->friendPartyIcons[i]].invisible = FALSE; + gUnknown_03004824->tradeIconsActive[i + 6] = TRUE; + } + else + { + gUnknown_03004824->tradeIconsActive[i + 6] = FALSE; + } + } + gUnknown_03004824->unk_0050 = TRUE; +} + asm(".section .text.sub_804A96C"); void sub_804A96C(struct UnkStructD *arg0, u8 left, u8 top, u16 *tilemap, u8 width, u8 height, u16 sp8) { |