Removed IsMsgSignPost per https://github.com/rh-hideout/pokeemerald-expansion/pull/5044\#discussion_r1712963672
This commit is contained in:
parent
b39258ebce
commit
846e8a29da
4 changed files with 7 additions and 10 deletions
|
@ -63,10 +63,12 @@ void InitRamScript_NoObjectEvent(u8 *script, u16 scriptSize);
|
|||
// srccmd.h
|
||||
void SetMovingNpcId(u16 npcId);
|
||||
|
||||
extern u8 sMsgIsSignPost;
|
||||
extern u8 sMsgBoxIsCancelable;
|
||||
|
||||
void SetWalkingIntoSignVars(void);
|
||||
void MsgSetSignPost(void);
|
||||
void ResetFacingNpcOrSignPostVars(void);
|
||||
bool32 IsMsgSignPost(void);
|
||||
bool32 CanWalkAwayToCancelMsgBox(void);
|
||||
void ClearMsgBoxCancelableState(void);
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ static void Task_DrawFieldMessage(u8 taskId)
|
|||
switch (task->tState)
|
||||
{
|
||||
case 0:
|
||||
if (IsMsgSignPost())
|
||||
if (sMsgIsSignPost)
|
||||
LoadSignPostWindowFrameGfx();
|
||||
else
|
||||
LoadMessageBoxAndBorderGfx();
|
||||
|
|
|
@ -328,7 +328,7 @@ static void WindowFunc_DrawSignFrame(u8 bg, u8 tilemapLeft, u8 tilemapTop, u8 wi
|
|||
|
||||
static inline void *GetWindowFunc_DialogueFrame(void)
|
||||
{
|
||||
return (IsMsgSignPost() ? WindowFunc_DrawSignFrame : WindowFunc_DrawDialogueFrame);
|
||||
return (sMsgIsSignPost ? WindowFunc_DrawSignFrame : WindowFunc_DrawDialogueFrame);
|
||||
}
|
||||
|
||||
void DrawDialogueFrame(u8 windowId, bool8 copyToVram)
|
||||
|
|
|
@ -27,8 +27,8 @@ static u8 sGlobalScriptContextStatus;
|
|||
static struct ScriptContext sGlobalScriptContext;
|
||||
static struct ScriptContext sImmediateScriptContext;
|
||||
static bool8 sLockFieldControls;
|
||||
static u8 sMsgIsSignPost;
|
||||
static u8 sMsgBoxIsCancelable;
|
||||
EWRAM_DATA u8 sMsgIsSignPost = FALSE;
|
||||
EWRAM_DATA u8 sMsgBoxIsCancelable = FALSE;
|
||||
|
||||
extern ScrCmdFunc gScriptCmdTable[];
|
||||
extern ScrCmdFunc gScriptCmdTableEnd[];
|
||||
|
@ -513,11 +513,6 @@ void SetWalkingIntoSignVars(void)
|
|||
sMsgBoxIsCancelable = TRUE;
|
||||
}
|
||||
|
||||
bool32 IsMsgSignPost(void)
|
||||
{
|
||||
return sMsgIsSignPost;
|
||||
}
|
||||
|
||||
void ResetFacingNpcOrSignPostVars(void)
|
||||
{
|
||||
sMsgIsSignPost = FALSE;
|
||||
|
|
Loading…
Reference in a new issue