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/text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/text.c') diff --git a/src/text.c b/src/text.c index 2d4d4a9b0..956ee9082 100644 --- a/src/text.c +++ b/src/text.c @@ -523,7 +523,7 @@ void TextPrinterClearDownArrow(struct TextPrinter *textPrinter) bool8 TextPrinterWaitAutoMode(struct TextPrinter *textPrinter) { struct TextPrinterSubStruct *subStruct = &textPrinter->subUnion.sub; - u8 delay = (gQuestLogState == 2) ? 50 : 120; + u8 delay = (gQuestLogState == QL_STATE_PLAYBACK) ? 50 : 120; if (subStruct->autoScrollDelay == delay) { @@ -712,7 +712,7 @@ u16 RenderText(struct TextPrinter *textPrinter) textPrinter->printerTemplate.currentChar++; currChar |= *textPrinter->printerTemplate.currentChar << 8; textPrinter->printerTemplate.currentChar++; - if (gQuestLogState != 2 && gQuestLogState != 3) + if (!QL_IS_PLAYBACK_STATE) PlayBGM(currChar); return 2; case 16: -- 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/text.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/text.c') diff --git a/src/text.c b/src/text.c index 1a0858604..9e0bb4c5f 100644 --- a/src/text.c +++ b/src/text.c @@ -1,9 +1,5 @@ #include "global.h" -#include "main.h" -#include "window.h" -#include "text.h" -#include "sprite.h" -#include "sound.h" +#include "gflib.h" #include "m4a.h" #include "quest_log.h" #include "graphics.h" -- cgit v1.2.3