Synced src/mon_markings.c and partly synced PSS
This commit is contained in:
+8
-8
@@ -153,7 +153,7 @@ static const u16 sUnknown_8456638[] = INCBIN_U16("graphics/unknown/unknown_84566
|
||||
|
||||
static const u8 sQuestLogTextLineYCoords[] = {17, 10, 3};
|
||||
|
||||
void SetQuestLogRecordAndPlaybackPointers(void * oldPointer)
|
||||
void SetQuestLogRecordAndPlaybackPointers(void *oldPointer)
|
||||
{
|
||||
ptrdiff_t offset = (void *)gSaveBlock1Ptr - oldPointer;
|
||||
if (gUnknown_203AE04)
|
||||
@@ -201,10 +201,10 @@ void RunQuestLogCB(void)
|
||||
sQuestLogCB();
|
||||
}
|
||||
|
||||
bool8 sub_8110944(const void * a0, size_t cmdSize)
|
||||
bool8 sub_8110944(const void *a0, size_t cmdSize)
|
||||
{
|
||||
void * r2 = gSaveBlock1Ptr->questLog[sCurrentSceneNum].script;
|
||||
void * r0 = gSaveBlock1Ptr->questLog[sCurrentSceneNum].end;
|
||||
void *r2 = gSaveBlock1Ptr->questLog[sCurrentSceneNum].script;
|
||||
void *r0 = gSaveBlock1Ptr->questLog[sCurrentSceneNum].end;
|
||||
r0 -= cmdSize;
|
||||
if ((const void *)a0 < r2 || (const void *)a0 > r0)
|
||||
return FALSE;
|
||||
@@ -213,8 +213,8 @@ bool8 sub_8110944(const void * a0, size_t cmdSize)
|
||||
|
||||
bool8 WillCommandOfSizeFitInSav1Record(u16 *cursor, size_t size)
|
||||
{
|
||||
void * start = gSaveBlock1Ptr->questLog[sCurrentSceneNum].script;
|
||||
void * end = gSaveBlock1Ptr->questLog[sCurrentSceneNum].end;
|
||||
void *start = gSaveBlock1Ptr->questLog[sCurrentSceneNum].script;
|
||||
void *end = gSaveBlock1Ptr->questLog[sCurrentSceneNum].end;
|
||||
end -= size;
|
||||
if ((void *)cursor < start || (void *)cursor > end)
|
||||
return FALSE;
|
||||
@@ -1645,9 +1645,9 @@ static const struct FlagOrVarRecord sDummyFlagOrVarRecord = {
|
||||
0x7FFF
|
||||
};
|
||||
|
||||
void * QuestLogGetFlagOrVarPtr(bool8 isFlag, u16 idx)
|
||||
void *QuestLogGetFlagOrVarPtr(bool8 isFlag, u16 idx)
|
||||
{
|
||||
void * response;
|
||||
void *response;
|
||||
if (sQuestLogCursor == 0)
|
||||
return NULL;
|
||||
if (sQuestLogCursor >= sNumEventsInLogEntry)
|
||||
|
||||
Reference in New Issue
Block a user