From ff45da6a0ecd990e67c626335ae4a6efc58ca5e2 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Thu, 16 Apr 2020 14:45:08 +0100 Subject: [PATCH] Mark a static function as static Both the Linux and Mac debug data indicate this is static (they both prefix static function names with an extra underscore) --- src/NpChar.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/NpChar.cpp b/src/NpChar.cpp index 46c314da..b4f914d9 100644 --- a/src/NpChar.cpp +++ b/src/NpChar.cpp @@ -26,12 +26,7 @@ int gSuperYpos; const char *gPassPixEve = "PXE"; -void InitNpChar(void) -{ - memset(gNPC, 0, sizeof(gNPC)); -} - -void SetUniqueParameter(NPCHAR *npc) +static void SetUniqueParameter(NPCHAR *npc) { int code = npc->code_char; npc->surf = (SurfaceID)gNpcTable[code].surf; @@ -50,6 +45,11 @@ void SetUniqueParameter(NPCHAR *npc) npc->view.bottom = gNpcTable[code].view.bottom * 0x200; } +void InitNpChar(void) +{ + memset(gNPC, 0, sizeof(gNPC)); +} + BOOL LoadEvent(const char *path_event) { int i, n;