diff options
author | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2017-02-11 00:38:59 -0500 |
---|---|---|
committer | YamaArashi <YamaArashi@users.noreply.github.com> | 2017-02-10 21:38:59 -0800 |
commit | f21587ea9eb1190ac2136d72deb7929c1e1169eb (patch) | |
tree | bf39287a8b3906a6e2b47197e323047272b3d5a4 /src/rom_800D42C.c | |
parent | c78e787f934f03bfffcf93ac69d92271d7d8036d (diff) |
misc labels and memcpy/set cleanups (#232)
* some labels and enumerate player speeds
* clear up speed enums
* GetPlayerSpeed
* oops
* start decompiling mauville_old_man.c
* formatting
* decompile more of mauville_old_man.c
* someone fix this please
* formatting
* make ROM build again
* formatting again
* make ROM match again
* label, document, reorganize, and clean up battle_ai.c
* move stuff to battle.h and get rid of battle_2000000
* various changes
* labeling
* minor labels and formatting
* contest ai labels and misc stuff
Diffstat (limited to 'src/rom_800D42C.c')
-rw-r--r-- | src/rom_800D42C.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rom_800D42C.c b/src/rom_800D42C.c index f41aa560a..7b572ba73 100644 --- a/src/rom_800D42C.c +++ b/src/rom_800D42C.c @@ -43,7 +43,7 @@ void sub_800DC24(void) { // lp_field_18 = player position? - switch (gLinkPlayers[battle_2000000.linkPlayerIndex].lp_field_18) + switch (gLinkPlayers[BATTLE_STRUCT->linkPlayerIndex].lp_field_18) { case 0: case 2: PRINT_MESSAGE_LEFT(BattleText_Win, 160); @@ -59,7 +59,7 @@ void sub_800DC24(void) else { - switch (gLinkPlayers[battle_2000000.linkPlayerIndex].lp_field_18) + switch (gLinkPlayers[BATTLE_STRUCT->linkPlayerIndex].lp_field_18) { case 1: case 3: PRINT_MESSAGE_LEFT(BattleText_Win, 160); @@ -79,7 +79,7 @@ void sub_800DC24(void) if (gUnknown_02024D26 == 1) { - if (gLinkPlayers[battle_2000000.linkPlayerIndex].lp_field_18 != 0) + if (gLinkPlayers[BATTLE_STRUCT->linkPlayerIndex].lp_field_18 != 0) { PRINT_MESSAGE_RIGHT(BattleText_Win, 160); PRINT_MESSAGE_LEFT(BattleText_Loss, 168); @@ -92,7 +92,7 @@ void sub_800DC24(void) } else { - if (gLinkPlayers[battle_2000000.linkPlayerIndex].lp_field_18 != 0) + if (gLinkPlayers[BATTLE_STRUCT->linkPlayerIndex].lp_field_18 != 0) { PRINT_MESSAGE_LEFT(BattleText_Win, 160); PRINT_MESSAGE_RIGHT(BattleText_Loss, 168); |