shithub: cstory

Download patch

ref: 496a50c272e2531938af873c177eab4338d2778d
parent: 95b29bb516d36cb4375c276cf2a9e4e7e84a3e19
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun May 3 16:52:48 EDT 2020

More static function stuff

This time I'm using the Linux debug data

--- a/src/BossAlmo1.cpp
+++ b/src/BossAlmo1.cpp
@@ -13,7 +13,7 @@
 #include "Sound.h"
 #include "Triangle.h"
 
-static void ActBossChar_Core_Face(NPCHAR *npc)
+void ActBossChar_Core_Face(NPCHAR *npc)
 {
 	RECT rect[4] = {
 		{0, 0, 72, 112},
@@ -64,7 +64,7 @@
 		npc->rect.bottom = npc->rect.top + npc->act_wait;
 }
 
-static void ActBossChar_Core_Tail(NPCHAR *npc)
+void ActBossChar_Core_Tail(NPCHAR *npc)
 {
 	RECT rect[3] = {
 		{72, 0, 160, 112},
@@ -114,7 +114,7 @@
 		npc->rect.bottom = npc->rect.top + npc->act_wait;
 }
 
-static void ActBossChar_Core_Mini(NPCHAR *npc)
+void ActBossChar_Core_Mini(NPCHAR *npc)
 {
 	RECT rect[3] = {
 		{256, 0, 320, 40},
@@ -228,7 +228,7 @@
 	npc->rect = rect[npc->ani_no];
 }
 
-static void ActBossChar_Core_Hit(NPCHAR *npc)
+void ActBossChar_Core_Hit(NPCHAR *npc)
 {
 	switch (npc->count1)
 	{
--- a/src/Ending.cpp
+++ b/src/Ending.cpp
@@ -299,7 +299,7 @@
 }
 
 // Parse credits
-void ActionCredit_Read(void)
+static void ActionCredit_Read(void)
 {
 	int a, b, len;
 	char text[40];
@@ -449,7 +449,7 @@
 }
 
 // Get number from text (4 digit)
-int GetScriptNumber(const char *text)
+static int GetScriptNumber(const char *text)
 {
 	return (text[0] - '0') * 1000 +
 		(text[1] - '0') * 100 +