diff options
author | GriffinR <griffin.richards@comcast.net> | 2019-10-10 03:50:51 -0400 |
---|---|---|
committer | GriffinR <griffin.richards@comcast.net> | 2019-10-10 03:50:51 -0400 |
commit | 07fa82c911c5a22f0671a4ea798056b8de3c0a80 (patch) | |
tree | 03cc8bf1c7cddecf1dd54bf9ba83eccf98b04b61 /src/link.c | |
parent | 32aa87c7e126357165e1efa2f6e1ed3d3aadbdf8 (diff) |
Last non-anim trade.c doc
Diffstat (limited to 'src/link.c')
-rw-r--r-- | src/link.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/link.c b/src/link.c index 9e35ad5c5..e88dcb861 100644 --- a/src/link.c +++ b/src/link.c @@ -28,6 +28,7 @@ #include "link.h" #include "link_rfu.h" #include "constants/rgb.h" +#include "constants/trade.h" extern u16 gHeldKeyCodeToSend; @@ -862,15 +863,15 @@ u8 GetLinkPlayerDataExchangeStatusTimed(int lower, int upper) { if (gLinkPlayers[0].linkType == 0x1133) { - switch (sub_807A728()) + switch (GetGameProgressForLinkTrade()) { - case 1: - sPlayerDataExchangeStatus = EXCHANGE_STAT_4; + case TRADE_PLAYER_NOT_READY: + sPlayerDataExchangeStatus = EXCHANGE_PLAYER_NOT_READY; break; - case 2: - sPlayerDataExchangeStatus = EXCHANGE_STAT_5; + case TRADE_PARTNER_NOT_READY: + sPlayerDataExchangeStatus = EXCHANGE_PARTNER_NOT_READY; break; - case 0: + case TRADE_BOTH_PLAYERS_READY: sPlayerDataExchangeStatus = EXCHANGE_COMPLETE; break; } |