From a622448029e7849361d2aabcd2138ed0de207dd1 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Sun, 5 Apr 2020 20:30:45 -0400 Subject: More quest log documentation amid other stuff --- src/field_tasks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/field_tasks.c') diff --git a/src/field_tasks.c b/src/field_tasks.c index 4c7b93f20..53b49b0d8 100644 --- a/src/field_tasks.c +++ b/src/field_tasks.c @@ -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]); } -- cgit v1.2.3 From ea207f6334676be3abb6a8b03065364fa0027ee1 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Wed, 8 Apr 2020 17:03:26 -0400 Subject: Clean up includes --- src/field_tasks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/field_tasks.c') diff --git a/src/field_tasks.c b/src/field_tasks.c index 53b49b0d8..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" -- cgit v1.2.3