Fixed spacing per https://github.com/rh-hideout/pokeemerald-expansion/pull/5044\#pullrequestreview-2315029773
This commit is contained in:
parent
1ba8e7d300
commit
f0bd3c57da
@ -161,7 +161,7 @@ int ProcessPlayerFieldInput(struct FieldInput *input)
|
|||||||
gSpecialVar_LastTalked = 0;
|
gSpecialVar_LastTalked = 0;
|
||||||
gSelectedObjectEvent = 0;
|
gSelectedObjectEvent = 0;
|
||||||
|
|
||||||
gMsgIsSignPost = FALSE;
|
gMsgIsSignPost = FALSE;
|
||||||
playerDirection = GetPlayerFacingDirection();
|
playerDirection = GetPlayerFacingDirection();
|
||||||
GetPlayerPosition(&position);
|
GetPlayerPosition(&position);
|
||||||
metatileBehavior = MapGridGetMetatileBehaviorAt(position.x, position.y);
|
metatileBehavior = MapGridGetMetatileBehaviorAt(position.x, position.y);
|
||||||
@ -1122,7 +1122,7 @@ static void SetMsgSignPostAndVarFacing(u32 playerDirection)
|
|||||||
{
|
{
|
||||||
gWalkAwayFromSignpostTimer = WALK_AWAY_SIGNPOST_FRAMES;
|
gWalkAwayFromSignpostTimer = WALK_AWAY_SIGNPOST_FRAMES;
|
||||||
gMsgBoxIsCancelable = TRUE;
|
gMsgBoxIsCancelable = TRUE;
|
||||||
gMsgIsSignPost = TRUE;
|
gMsgIsSignPost = TRUE;
|
||||||
gSpecialVar_Facing = playerDirection;
|
gSpecialVar_Facing = playerDirection;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1168,8 +1168,8 @@ void CancelSignPostMessageBox(struct FieldInput *input)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gMsgBoxIsCancelable)
|
if (!gMsgBoxIsCancelable)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (IsDpadPushedToTurnOrMovePlayer(input))
|
if (IsDpadPushedToTurnOrMovePlayer(input))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -32,7 +32,7 @@ static void Task_DrawFieldMessage(u8 taskId)
|
|||||||
switch (task->tState)
|
switch (task->tState)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
if (gMsgIsSignPost)
|
if (gMsgIsSignPost)
|
||||||
LoadSignPostWindowFrameGfx();
|
LoadSignPostWindowFrameGfx();
|
||||||
else
|
else
|
||||||
LoadMessageBoxAndBorderGfx();
|
LoadMessageBoxAndBorderGfx();
|
||||||
|
|||||||
@ -1310,7 +1310,7 @@ bool8 ScrCmd_release(struct ScriptContext *ctx)
|
|||||||
ObjectEventClearHeldMovementIfFinished(&gObjectEvents[playerObjectId]);
|
ObjectEventClearHeldMovementIfFinished(&gObjectEvents[playerObjectId]);
|
||||||
ScriptMovement_UnfreezeObjectEvents();
|
ScriptMovement_UnfreezeObjectEvents();
|
||||||
UnfreezeObjectEvents();
|
UnfreezeObjectEvents();
|
||||||
gMsgBoxIsCancelable = FALSE;
|
gMsgBoxIsCancelable = FALSE;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -504,4 +504,3 @@ void InitRamScript_NoObjectEvent(u8 *script, u16 scriptSize)
|
|||||||
InitRamScript(script, scriptSize, MAP_GROUP(UNDEFINED), MAP_NUM(UNDEFINED), NO_OBJECT);
|
InitRamScript(script, scriptSize, MAP_GROUP(UNDEFINED), MAP_NUM(UNDEFINED), NO_OBJECT);
|
||||||
#endif //FREE_MYSTERY_EVENT_BUFFERS
|
#endif //FREE_MYSTERY_EVENT_BUFFERS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user