summaryrefslogtreecommitdiff
path: root/src/field_tasks.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/field_tasks.c')
-rw-r--r--src/field_tasks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/field_tasks.c b/src/field_tasks.c
index 4c7b93f20..0eb3045e0 100644
--- a/src/field_tasks.c
+++ b/src/field_tasks.c
@@ -1,4 +1,5 @@
#include "global.h"
+#include "gflib.h"
#include "bike.h"
#include "event_data.h"
#include "field_camera.h"
@@ -9,7 +10,6 @@
#include "overworld.h"
#include "quest_log.h"
#include "script.h"
-#include "sound.h"
#include "task.h"
#include "constants/field_tasks.h"
#include "constants/flags.h"
@@ -61,7 +61,7 @@ static void Task_RunTimeBasedEvents(u8 taskId)
if (!ScriptContext2_IsEnabled())
{
- if (gQuestLogState != 2 && gQuestLogState != 3)
+ if (!QL_IS_PLAYBACK_STATE)
{
UpdateAmbientCry(&data[1], &data[2]);
}