summaryrefslogtreecommitdiff
path: root/src/rom_800D42C.c
diff options
context:
space:
mode:
authorcamthesaxman <cameronghall@cox.net>2018-01-15 20:41:55 -0600
committercamthesaxman <cameronghall@cox.net>2018-01-15 20:41:55 -0600
commit5d923c4d5f3d0786715663b3ad83bc9f3e778164 (patch)
tree99e35c489871918c95493c74ae753a9e3eb60357 /src/rom_800D42C.c
parented152b1566fa5c39ee72ca190c49fbfe30708036 (diff)
import some battle_4.c code from emerald and get atk23_getexp matching
Diffstat (limited to 'src/rom_800D42C.c')
-rw-r--r--src/rom_800D42C.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rom_800D42C.c b/src/rom_800D42C.c
index 9449ca0d1..a1b0f5ecb 100644
--- a/src/rom_800D42C.c
+++ b/src/rom_800D42C.c
@@ -52,7 +52,7 @@ void PrintLinkBattleWinLossTie(void)
{
// lp_field_18 = player position?
- switch (gLinkPlayers[BATTLE_STRUCT->linkPlayerIndex].lp_field_18)
+ switch (gLinkPlayers[gBattleStruct->linkPlayerIndex].lp_field_18)
{
case 0:
case 2:
@@ -70,7 +70,7 @@ void PrintLinkBattleWinLossTie(void)
else
{
- switch (gLinkPlayers[BATTLE_STRUCT->linkPlayerIndex].lp_field_18)
+ switch (gLinkPlayers[gBattleStruct->linkPlayerIndex].lp_field_18)
{
case 1:
case 3:
@@ -92,7 +92,7 @@ void PrintLinkBattleWinLossTie(void)
if (gBattleOutcome == 1)
{
- if (gLinkPlayers[BATTLE_STRUCT->linkPlayerIndex].lp_field_18 != 0)
+ if (gLinkPlayers[gBattleStruct->linkPlayerIndex].lp_field_18 != 0)
{
PRINT_MESSAGE_RIGHT(BattleText_Win, TILE_OFFSET_WIN);
PRINT_MESSAGE_LEFT(BattleText_Loss, TILE_OFFSET_LOSS);
@@ -105,7 +105,7 @@ void PrintLinkBattleWinLossTie(void)
}
else
{
- if (gLinkPlayers[BATTLE_STRUCT->linkPlayerIndex].lp_field_18 != 0)
+ if (gLinkPlayers[gBattleStruct->linkPlayerIndex].lp_field_18 != 0)
{
PRINT_MESSAGE_LEFT(BattleText_Win, TILE_OFFSET_WIN);
PRINT_MESSAGE_RIGHT(BattleText_Loss, TILE_OFFSET_LOSS);