From 3f0a05f2e8b18b417fbc1d77ecb23a57ea5e2cc9 Mon Sep 17 00:00:00 2001 From: Tal Hayon Date: Thu, 14 Apr 2022 20:27:32 +0300 Subject: Put const data into brocco --- src/npc/brocco.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/npc/brocco.c b/src/npc/brocco.c index 680688f2..78e05325 100644 --- a/src/npc/brocco.c +++ b/src/npc/brocco.c @@ -9,8 +9,6 @@ void sub_0806355C(Entity*); void sub_08063584(Entity*); void sub_08063608(Entity*); -extern Dialog gUnk_0810CAAC[]; - void Brocco(Entity* this) { if ((this->flags & ENT_SCRIPTED) != 0) { sub_0806362C(this); @@ -100,6 +98,13 @@ void sub_0806362C(Entity* this) { } void sub_080636D8(Entity* this) { + static const Dialog gUnk_0810CAAC[] = { + { 0, 0, 1, 1, { 0, 0x2510 } }, { 0, 0, 1, 1, { 0, 0x2510 } }, { 5, 0, 3, 1, { 0x3424, 0x3423 } }, + { 5, 0, 3, 1, { 0x3424, 0x3423 } }, { 5, 0, 3, 1, { 0x351f, 0x351e } }, { 5, 0, 3, 1, { 0x361e, 0x361d } }, + { 5, 0, 3, 1, { 0x371f, 0x371e } }, { 5, 0, 3, 1, { 0x381f, 0x381e } }, { 5, 0, 3, 1, { 0x3919, 0x3918 } }, + { 5, 0, 3, 1, { 0x3919, 0x3918 } }, + }; + ShowNPCDialogue(this, &gUnk_0810CAAC[gSave.global_progress]); } -- cgit v1.2.3