diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2018-05-19 18:13:48 +0200 |
---|---|---|
committer | DizzyEggg <jajkodizzy@wp.pl> | 2018-05-19 18:13:48 +0200 |
commit | 1307fde8ca6e5d9121f4589e6919d9966ea3e90f (patch) | |
tree | 29e8df8b2413089c1765f27f37c03bdc9d378b92 | |
parent | d1798d0ed90dc4b17d43f13e84be35b889111417 (diff) |
make field tasks compile
-rw-r--r-- | asm/field_tasks.s | 10 | ||||
-rw-r--r-- | data/field_tasks.s | 8 | ||||
-rw-r--r-- | src/battle_setup.c | 4 | ||||
-rw-r--r-- | src/lilycove_lady.c | 4 | ||||
-rw-r--r-- | src/mauville_old_man.c | 2 | ||||
-rw-r--r-- | src/rotating_gate.c | 6 | ||||
-rw-r--r-- | src/secret_base.c | 2 | ||||
-rw-r--r-- | src/tv.c | 16 |
8 files changed, 17 insertions, 35 deletions
diff --git a/asm/field_tasks.s b/asm/field_tasks.s deleted file mode 100644 index c3fc4d140..000000000 --- a/asm/field_tasks.s +++ /dev/null @@ -1,10 +0,0 @@ - .include "asm/macros.inc" - .include "constants/constants.inc" - - .syntax unified - - .text - - - - .align 2, 0 @ Don't pad with nop. diff --git a/data/field_tasks.s b/data/field_tasks.s deleted file mode 100644 index 4ca2e67c9..000000000 --- a/data/field_tasks.s +++ /dev/null @@ -1,8 +0,0 @@ - .include "asm/macros.inc" - .include "constants/constants.inc" - - .section .rodata - .align 2, 0 - - - diff --git a/src/battle_setup.c b/src/battle_setup.c index 15af005c4..48a2ef257 100644 --- a/src/battle_setup.c +++ b/src/battle_setup.c @@ -394,7 +394,7 @@ static void DoStandardWildBattle(void) gBattleTypeFlags = 0; if (InBattlePyramid()) { - VarSet(VAR_0x400E, 0); + VarSet(VAR_TEMP_E, 0); gBattleTypeFlags |= BATTLE_TYPE_PYRAMID; } CreateBattleStartTask(GetWildBattleTransition(), 0); @@ -1258,7 +1258,7 @@ void BattleSetup_StartTrainerBattle(void) if (InBattlePyramid()) { - VarSet(VAR_0x400E, 0); + VarSet(VAR_TEMP_E, 0); gBattleTypeFlags |= BATTLE_TYPE_PYRAMID; if (gNoOfApproachingTrainers == 2) diff --git a/src/lilycove_lady.c b/src/lilycove_lady.c index ea244b6a0..7e91f1343 100644 --- a/src/lilycove_lady.c +++ b/src/lilycove_lady.c @@ -237,11 +237,11 @@ void sub_818D9C0(void) { LilycoveLady *lilycoveLady; - VarSet(VAR_0x4010, sUnknown_0860B07E[GetLilycoveLadyId()]); + VarSet(VAR_OBJ_GFX_ID_0, sUnknown_0860B07E[GetLilycoveLadyId()]); if (GetLilycoveLadyId() == LILYCOVE_LADY_CONTEST) { lilycoveLady = &gSaveBlock1Ptr->lilycoveLady; - VarSet(VAR_0x4011, sUnknown_0860B074[lilycoveLady->contest.category]); + VarSet(VAR_OBJ_GFX_ID_1, sUnknown_0860B074[lilycoveLady->contest.category]); gSpecialVar_Result = TRUE; } else diff --git a/src/mauville_old_man.c b/src/mauville_old_man.c index ea466b2ec..d6ecb8082 100644 --- a/src/mauville_old_man.c +++ b/src/mauville_old_man.c @@ -673,7 +673,7 @@ static void Task_BardSong(u8 taskId) void ScrSpecial_SetMauvilleOldManMapObjGfx(void) { - VarSet(VAR_0x4010, MAP_OBJ_GFX_BARD); + VarSet(VAR_OBJ_GFX_ID_0, MAP_OBJ_GFX_BARD); } // Language fixers? diff --git a/src/rotating_gate.c b/src/rotating_gate.c index a16401fa2..b07814f58 100644 --- a/src/rotating_gate.c +++ b/src/rotating_gate.c @@ -646,7 +646,7 @@ static void RotatingGate_ResetAllGateOrientations(void) s32 i; u8 *ptr; - ptr = (u8 *)GetVarPointer(VAR_0x4000); + ptr = (u8 *)GetVarPointer(VAR_TEMP_0); for (i = 0; i < gRotatingGate_PuzzleCount; i++) { @@ -656,12 +656,12 @@ static void RotatingGate_ResetAllGateOrientations(void) static s32 RotatingGate_GetGateOrientation(u8 gateId) { - return ((u8 *)GetVarPointer(VAR_0x4000))[gateId]; + return ((u8 *)GetVarPointer(VAR_TEMP_0))[gateId]; } static void RotatingGate_SetGateOrientation(u8 gateId, u8 orientation) { - ((u8 *)GetVarPointer(VAR_0x4000))[gateId] = orientation; + ((u8 *)GetVarPointer(VAR_TEMP_0))[gateId] = orientation; } static void RotatingGate_RotateInDirection(u8 gateId, u32 rotationDirection) diff --git a/src/secret_base.c b/src/secret_base.c index e2b7e20f1..9dacd967b 100644 --- a/src/secret_base.c +++ b/src/secret_base.c @@ -592,7 +592,7 @@ void sub_80E9578(void) void sub_80E95D4(void) { - VarSet(VAR_0x401F, gUnknown_0858D060[sub_80EA20C(VarGet(VAR_0x4054))]); + VarSet(VAR_OBJ_GFX_ID_F, gUnknown_0858D060[sub_80EA20C(VarGet(VAR_0x4054))]); } void sub_80E9608(struct Coords16 *coords, struct MapEvents *events) @@ -3557,7 +3557,7 @@ void GetMomOrDadStringForTVMessage(void) if (gSaveBlock1Ptr->location.mapNum == MAP_NUM(LITTLEROOT_TOWN_BRENDANS_HOUSE_1F)) { StringCopy(gStringVar1, gText_Mom); - VarSet(VAR_0x4003, 1); + VarSet(VAR_TEMP_3, 1); } } else @@ -3565,21 +3565,21 @@ void GetMomOrDadStringForTVMessage(void) if (gSaveBlock1Ptr->location.mapNum == MAP_NUM(LITTLEROOT_TOWN_MAYS_HOUSE_1F)) { StringCopy(gStringVar1, gText_Mom); - VarSet(VAR_0x4003, 1); + VarSet(VAR_TEMP_3, 1); } } } - if (VarGet(VAR_0x4003) == 1) + if (VarGet(VAR_TEMP_3) == 1) { StringCopy(gStringVar1, gText_Mom); } - else if (VarGet(VAR_0x4003) == 2) + else if (VarGet(VAR_TEMP_3) == 2) { StringCopy(gStringVar1, gText_Dad); } - else if (VarGet(VAR_0x4003) > 2) + else if (VarGet(VAR_TEMP_3) > 2) { - if (VarGet(VAR_0x4003) % 2 == 0) + if (VarGet(VAR_TEMP_3) % 2 == 0) StringCopy(gStringVar1, gText_Mom); else StringCopy(gStringVar1, gText_Dad); @@ -3589,12 +3589,12 @@ void GetMomOrDadStringForTVMessage(void) if (Random() % 2 != 0) { StringCopy(gStringVar1, gText_Mom); - VarSet(VAR_0x4003, 1); + VarSet(VAR_TEMP_3, 1); } else { StringCopy(gStringVar1, gText_Dad); - VarSet(VAR_0x4003, 2); + VarSet(VAR_TEMP_3, 2); } } } |