ref: 95b29bb516d36cb4375c276cf2a9e4e7e84a3e19
parent: 486cf37161e47a38557ea882aa7d3f571e1ef8be
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun May 3 16:42:22 EDT 2020
Mark some functions as static Mac debug data confirms these
--- a/src/BulHit.cpp
+++ b/src/BulHit.cpp
@@ -7,7 +7,7 @@
#include "NpChar.h"
#include "Sound.h"
-void Vanish(BULLET *bul)
+static void Vanish(BULLET *bul)
{
if (bul->code_bullet != 37 && bul->code_bullet != 38 && bul->code_bullet != 39)
PlaySoundObject(28, 1);
--- a/src/Game.cpp
+++ b/src/Game.cpp
@@ -107,7 +107,7 @@
}
}
-int ModeOpening(HWND hWnd)
+static int ModeOpening(HWND hWnd)
{
int frame_x;
int frame_y;
@@ -223,7 +223,7 @@
return 2;
}
-int ModeTitle(HWND hWnd)
+static int ModeTitle(HWND hWnd)
{
// Set rects
RECT rcTitle = {0, 0, 144, 40};
@@ -470,7 +470,7 @@
return 3;
}
-int ModeAction(HWND hWnd)
+static int ModeAction(HWND hWnd)
{
int frame_x;
int frame_y;
--- a/src/Main.cpp
+++ b/src/Main.cpp
@@ -70,7 +70,7 @@
}
}
-unsigned long CountFramePerSecound(void)
+static unsigned long CountFramePerSecound(void)
{
unsigned long current_tick; // The original name for this variable is unknown
static BOOL first = TRUE;
--- a/src/MycHit.cpp
+++ b/src/MycHit.cpp
@@ -19,7 +19,7 @@
gMC.flag = 0;
}
-void PutlittleStar(void)
+static void PutlittleStar(void)
{
if (!(gMC.cond & 2) && gMC.ym < -0x200)
{