summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2017-09-02 20:31:40 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2017-09-02 20:31:40 -0400
commit23854ba34673553218830405dfce1af4dbd701ad (patch)
treebd20e8d099dc7cb0956dfcca635e3adb708d8fdb /src
parente2475defe8867d6b50364e98e765ef4b5d117c4f (diff)
sub_804A740
Diffstat (limited to 'src')
-rw-r--r--src/trade.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/trade.c b/src/trade.c
index 29ba8c137..4a3584083 100644
--- a/src/trade.c
+++ b/src/trade.c
@@ -2411,6 +2411,19 @@ void sub_804A6DC(u8 whichParty)
}
#endif
+void sub_804A740(u8 whichParty)
+{
+ int i;
+ for (i = 0; i < gUnknown_03004824->partyCounts[whichParty]; i ++)
+ {
+ gSprites[gUnknown_03004824->partyIcons[whichParty][i]].invisible = FALSE;
+ gSprites[gUnknown_03004824->partyIcons[whichParty][i]].pos1.x = gTradeMonSpriteCoords[6 * whichParty + i][0] * 8 + 14;
+ gSprites[gUnknown_03004824->partyIcons[whichParty][i]].pos1.y = gTradeMonSpriteCoords[6 * whichParty + i][1] * 8 - 12;
+ gSprites[gUnknown_03004824->partyIcons[whichParty][i]].pos2.x = 0;
+ gSprites[gUnknown_03004824->partyIcons[whichParty][i]].pos2.y = 0;
+ }
+}
+
asm(".section .text.sub_804A96C");
/*static*/ void sub_804A96C(struct UnkStructD *arg0, u8 left, u8 top, const u16 *tilemap, u8 width, u8 height, u16 sp8) {