summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-03-02 10:26:42 -0500
committerPikalaxALT <pikalaxalt@gmail.com>2020-03-02 10:26:42 -0500
commitd975572a6ab54b2c8454c5b54ce48398be0ad292 (patch)
tree3d7832e8f56c3219e52b2bb9e946f4619130d411 /src
parentd758ae0dc2b91f1233872f6950b8f2d121bf961c (diff)
Fix some extern declarations
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
-rw-r--r--src/quest_log.c2
2 files changed, 3 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index a67c71746..77f668e6f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -20,6 +20,7 @@
#include "battle_controllers.h"
#include "scanline_effect.h"
#include "save_failed_screen.h"
+#include "quest_log.h"
extern u32 intr_main[];
@@ -77,9 +78,6 @@ static IntrFunc * const sTimerIntrFunc = gIntrTable + 0x7;
EWRAM_DATA u8 gDecompressionBuffer[0x4000] = {0};
EWRAM_DATA u16 gTrainerId = 0;
-extern bool8 gWirelessCommType;
-extern bool8 gUnknown_3005E88;
-
static void UpdateLinkAndCallCallbacks(void);
static void InitMainCallbacks(void);
static void CallCallbacks(void);
@@ -178,7 +176,7 @@ static void InitMainCallbacks(void)
gSaveBlock2Ptr = &gSaveBlock2;
gSaveBlock1Ptr = &gSaveBlock1;
gSaveBlock2.encryptionKey = 0;
- gUnknown_3005E88 = FALSE;
+ gUnknown_3005E88 = 0;
}
static void CallCallbacks(void)
diff --git a/src/quest_log.c b/src/quest_log.c
index 6e70ceea8..c9a930032 100644
--- a/src/quest_log.c
+++ b/src/quest_log.c
@@ -2761,7 +2761,7 @@ static bool8 TrySetTrainerBattleQuestLogEvent(u16 eventId, const u16 *eventData)
return FALSE;
sub_81138F8();
- if (gUnknown_3005E88 || FlagGet(FLAG_SYS_GAME_CLEAR) || sub_81137E4(eventId, eventData) != TRUE)
+ if (gUnknown_3005E88 != 0 || FlagGet(FLAG_SYS_GAME_CLEAR) || sub_81137E4(eventId, eventData) != TRUE)
{
gUnknown_203B024.unk_00 = eventId;
memcpy(gUnknown_203B024.unk_04, eventData, 8);