shithub: cstory

Download patch

ref: ff45da6a0ecd990e67c626335ae4a6efc58ca5e2
parent: 8f49276d5e4f52967419c952a7edb9ea2d36cf94
author: Clownacy <Clownacy@users.noreply.github.com>
date: Thu Apr 16 10:45:08 EDT 2020

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)

--- a/src/NpChar.cpp
+++ b/src/NpChar.cpp
@@ -26,13 +26,8 @@
 
 const char *gPassPixEve = "PXE";
 
-void InitNpChar(void)
+static void SetUniqueParameter(NPCHAR *npc)
 {
-	memset(gNPC, 0, sizeof(gNPC));
-}
-
-void SetUniqueParameter(NPCHAR *npc)
-{
 	int code = npc->code_char;
 	npc->surf = (SurfaceID)gNpcTable[code].surf;
 	npc->hit_voice = gNpcTable[code].hit_voice;
@@ -48,6 +43,11 @@
 	npc->view.back = gNpcTable[code].view.back * 0x200;
 	npc->view.top = gNpcTable[code].view.top * 0x200;
 	npc->view.bottom = gNpcTable[code].view.bottom * 0x200;
+}
+
+void InitNpChar(void)
+{
+	memset(gNPC, 0, sizeof(gNPC));
 }
 
 BOOL LoadEvent(const char *path_event)