summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/heal_location.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/heal_location.c b/src/heal_location.c
index b2f50c1f9..e31a30fb4 100644
--- a/src/heal_location.c
+++ b/src/heal_location.c
@@ -2,7 +2,6 @@
// Includes
#include "global.h"
#include "map_constants.h"
-#include "sprite.h"
#include "heal_location.h"
#define HEAL_LOCATION(map, x, y) {MAP_GROUP_##map, MAP_ID_##map, x, y}
@@ -15,7 +14,7 @@
// .rodata
-static const struct HealLocation sSpawnLocations[] = {
+static const struct HealLocation sHealLocations[] = {
HEAL_LOCATION(LITTLEROOT_TOWN_BRENDANS_HOUSE_2F, 4, 2),
HEAL_LOCATION(LITTLEROOT_TOWN_MAYS_HOUSE_2F, 4, 2),
HEAL_LOCATION(PETALBURG_CITY, 20, 17),
@@ -40,7 +39,7 @@ static const struct HealLocation sSpawnLocations[] = {
HEAL_LOCATION(BATTLE_FRONTIER_OUTSIDE_EAST, 3, 52)
};
-#define NUM_HEAL_LOCATIONS (ARRAY_COUNT(sSpawnLocations))
+#define NUM_HEAL_LOCATIONS (ARRAY_COUNT(sHealLocations))
// .text
@@ -50,7 +49,7 @@ static u32 GetHealLocationIndexFromMapGroupAndNum(u16 mapGroup, u16 mapNum)
for (i = 0; i < NUM_HEAL_LOCATIONS; i ++)
{
- if (sSpawnLocations[i].group == mapGroup && sSpawnLocations[i].map == mapNum)
+ if (sHealLocations[i].group == mapGroup && sHealLocations[i].map == mapNum)
{
return i + 1;
}
@@ -67,7 +66,7 @@ const struct HealLocation *GetHealLocationPointerFromMapGroupAndNum(u16 mapGroup
{
return NULL;
}
- return &sSpawnLocations[loc - 1];
+ return &sHealLocations[loc - 1];
}
const struct HealLocation *GetHealLocationPointer(u32 loc)
@@ -80,5 +79,5 @@ const struct HealLocation *GetHealLocationPointer(u32 loc)
{
return NULL;
}
- return &sSpawnLocations[loc - 1];
+ return &sHealLocations[loc - 1];
}