Fixed Pacifidlog typo.

This commit is contained in:
Eduardo Quezada 2020-09-05 01:11:07 -04:00
parent 2c25e126e7
commit b7fe94108c
3 changed files with 20 additions and 20 deletions

View File

@ -99,10 +99,10 @@ bool8 MetatileBehavior_IsShortGrass(u8);
bool8 MetatileBehavior_IsHotSprings(u8); bool8 MetatileBehavior_IsHotSprings(u8);
bool8 MetatileBehavior_IsWaterfall(u8); bool8 MetatileBehavior_IsWaterfall(u8);
bool8 MetatileBehavior_IsFortreeBridge(u8); bool8 MetatileBehavior_IsFortreeBridge(u8);
bool8 MetatileBehavior_IsPacifilogVerticalLog1(u8); bool8 MetatileBehavior_IsPacifidlogVerticalLog1(u8);
bool8 MetatileBehavior_IsPacifilogVerticalLog2(u8); bool8 MetatileBehavior_IsPacifidlogVerticalLog2(u8);
bool8 MetatileBehavior_IsPacifilogHorizontalLog1(u8); bool8 MetatileBehavior_IsPacifidlogHorizontalLog1(u8);
bool8 MetatileBehavior_IsPacifilogHorizontalLog2(u8); bool8 MetatileBehavior_IsPacifidlogHorizontalLog2(u8);
bool8 MetatileBehavior_IsPacifidlogLog(u8); bool8 MetatileBehavior_IsPacifidlogLog(u8);
bool8 MetatileBehavior_IsTrickHousePuzzleDoor(u8); bool8 MetatileBehavior_IsTrickHousePuzzleDoor(u8);
bool8 MetatileBehavior_IsRegionMap(u8); bool8 MetatileBehavior_IsRegionMap(u8);

View File

@ -219,13 +219,13 @@ static void DummyPerStepCallback(u8 taskId)
static const struct PacifidlogMetatileOffsets *GetPacifidlogBridgeMetatileOffsets(const struct PacifidlogMetatileOffsets *offsets, u16 metatileBehavior) static const struct PacifidlogMetatileOffsets *GetPacifidlogBridgeMetatileOffsets(const struct PacifidlogMetatileOffsets *offsets, u16 metatileBehavior)
{ {
if (MetatileBehavior_IsPacifilogVerticalLog1(metatileBehavior)) if (MetatileBehavior_IsPacifidlogVerticalLog1(metatileBehavior))
return &offsets[0 * 2]; return &offsets[0 * 2];
else if (MetatileBehavior_IsPacifilogVerticalLog2(metatileBehavior)) else if (MetatileBehavior_IsPacifidlogVerticalLog2(metatileBehavior))
return &offsets[1 * 2]; return &offsets[1 * 2];
else if (MetatileBehavior_IsPacifilogHorizontalLog1(metatileBehavior)) else if (MetatileBehavior_IsPacifidlogHorizontalLog1(metatileBehavior))
return &offsets[2 * 2]; return &offsets[2 * 2];
else if (MetatileBehavior_IsPacifilogHorizontalLog2(metatileBehavior)) else if (MetatileBehavior_IsPacifidlogHorizontalLog2(metatileBehavior))
return &offsets[3 * 2]; return &offsets[3 * 2];
else else
return NULL; return NULL;
@ -265,22 +265,22 @@ static bool32 StandingOnNewPacifidlogBridge(s16 x1, s16 y1, s16 x2, s16 y2)
{ {
u16 metatileBehavior = MapGridGetMetatileBehaviorAt(x2, y2); u16 metatileBehavior = MapGridGetMetatileBehaviorAt(x2, y2);
if (MetatileBehavior_IsPacifilogVerticalLog1(metatileBehavior)) if (MetatileBehavior_IsPacifidlogVerticalLog1(metatileBehavior))
{ {
if (y1 > y2) if (y1 > y2)
return FALSE; return FALSE;
} }
else if (MetatileBehavior_IsPacifilogVerticalLog2(metatileBehavior)) else if (MetatileBehavior_IsPacifidlogVerticalLog2(metatileBehavior))
{ {
if (y1 < y2) if (y1 < y2)
return FALSE; return FALSE;
} }
else if (MetatileBehavior_IsPacifilogHorizontalLog1(metatileBehavior)) else if (MetatileBehavior_IsPacifidlogHorizontalLog1(metatileBehavior))
{ {
if (x1 > x2) if (x1 > x2)
return FALSE; return FALSE;
} }
else if (MetatileBehavior_IsPacifilogHorizontalLog2(metatileBehavior)) else if (MetatileBehavior_IsPacifidlogHorizontalLog2(metatileBehavior))
{ {
if (x1 < x2) if (x1 < x2)
return FALSE; return FALSE;
@ -292,22 +292,22 @@ static bool32 StandingOnSamePacifidlogBridge(s16 x1, s16 y1, s16 x2, s16 y2)
{ {
u16 metatileBehavior = MapGridGetMetatileBehaviorAt(x1, y1); u16 metatileBehavior = MapGridGetMetatileBehaviorAt(x1, y1);
if (MetatileBehavior_IsPacifilogVerticalLog1(metatileBehavior)) if (MetatileBehavior_IsPacifidlogVerticalLog1(metatileBehavior))
{ {
if (y1 < y2) if (y1 < y2)
return FALSE; return FALSE;
} }
else if (MetatileBehavior_IsPacifilogVerticalLog2(metatileBehavior)) else if (MetatileBehavior_IsPacifidlogVerticalLog2(metatileBehavior))
{ {
if (y1 > y2) if (y1 > y2)
return FALSE; return FALSE;
} }
else if (MetatileBehavior_IsPacifilogHorizontalLog1(metatileBehavior)) else if (MetatileBehavior_IsPacifidlogHorizontalLog1(metatileBehavior))
{ {
if (x1 < x2) if (x1 < x2)
return FALSE; return FALSE;
} }
else if (MetatileBehavior_IsPacifilogHorizontalLog2(metatileBehavior)) else if (MetatileBehavior_IsPacifidlogHorizontalLog2(metatileBehavior))
{ {
if (x1 > x2) if (x1 > x2)
return FALSE; return FALSE;

View File

@ -1107,7 +1107,7 @@ bool8 MetatileBehavior_IsFortreeBridge(u8 metatileBehavior)
return FALSE; return FALSE;
} }
bool8 MetatileBehavior_IsPacifilogVerticalLog1(u8 metatileBehavior) bool8 MetatileBehavior_IsPacifidlogVerticalLog1(u8 metatileBehavior)
{ {
if (metatileBehavior == MB_PACIFIDLOG_VERTICAL_LOG_1) if (metatileBehavior == MB_PACIFIDLOG_VERTICAL_LOG_1)
return TRUE; return TRUE;
@ -1115,7 +1115,7 @@ bool8 MetatileBehavior_IsPacifilogVerticalLog1(u8 metatileBehavior)
return FALSE; return FALSE;
} }
bool8 MetatileBehavior_IsPacifilogVerticalLog2(u8 metatileBehavior) bool8 MetatileBehavior_IsPacifidlogVerticalLog2(u8 metatileBehavior)
{ {
if (metatileBehavior == MB_PACIFIDLOG_VERTICAL_LOG_2) if (metatileBehavior == MB_PACIFIDLOG_VERTICAL_LOG_2)
return TRUE; return TRUE;
@ -1123,7 +1123,7 @@ bool8 MetatileBehavior_IsPacifilogVerticalLog2(u8 metatileBehavior)
return FALSE; return FALSE;
} }
bool8 MetatileBehavior_IsPacifilogHorizontalLog1(u8 metatileBehavior) bool8 MetatileBehavior_IsPacifidlogHorizontalLog1(u8 metatileBehavior)
{ {
if (metatileBehavior == MB_PACIFIDLOG_HORIZONTAL_LOG_1) if (metatileBehavior == MB_PACIFIDLOG_HORIZONTAL_LOG_1)
return TRUE; return TRUE;
@ -1131,7 +1131,7 @@ bool8 MetatileBehavior_IsPacifilogHorizontalLog1(u8 metatileBehavior)
return FALSE; return FALSE;
} }
bool8 MetatileBehavior_IsPacifilogHorizontalLog2(u8 metatileBehavior) bool8 MetatileBehavior_IsPacifidlogHorizontalLog2(u8 metatileBehavior)
{ {
if (metatileBehavior == MB_PACIFIDLOG_HORIZONTAL_LOG_2) if (metatileBehavior == MB_PACIFIDLOG_HORIZONTAL_LOG_2)
return TRUE; return TRUE;