ref: 4000615b450b71b7dbdf5747a2268dd1e1f9bccd
parent: 124aebaaa25bd4925380bddba60d836da808ff39
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun May 3 18:13:28 EDT 2020
This is also likely more accurate to the source
--- a/src/Ending.cpp
+++ b/src/Ending.cpp
@@ -52,9 +52,6 @@
static STRIP Strip[MAX_STRIP];
static ILLUSTRATION Illust;
-static int GetScriptNumber(const char *text);
-static void ActionCredit_Read(void);
-
// Update casts
void ActionStripper(void)
{
@@ -281,24 +278,13 @@
return TRUE;
}
-// Update credits
-void ActionCredit(void)
+// Get number from text (4 digit)
+static int GetScriptNumber(const char *text)
{
- if (Credit.offset >= Credit.size)
- return;
-
- // Update script, or if waiting, decrement the wait value
- switch (Credit.mode)
- {
- case 1:
- ActionCredit_Read();
- break;
-
- case 2:
- if (--Credit.wait <= 0)
- Credit.mode = 1;
- break;
- }
+ return (text[0] - '0') * 1000 +
+ (text[1] - '0') * 100 +
+ (text[2] - '0') * 10 +
+ text[3] - '0';
}
// Parse credits
@@ -451,15 +437,25 @@
}
}
-// Get number from text (4 digit)
-static int GetScriptNumber(const char *text)
+// Update credits
+void ActionCredit(void)
{
- return (text[0] - '0') * 1000 +
- (text[1] - '0') * 100 +
- (text[2] - '0') * 10 +
- text[3] - '0';
-}
+ if (Credit.offset >= Credit.size)
+ return;
+ // Update script, or if waiting, decrement the wait value
+ switch (Credit.mode)
+ {
+ case 1:
+ ActionCredit_Read();
+ break;
+
+ case 2:
+ if (--Credit.wait <= 0)
+ Credit.mode = 1;
+ break;
+ }
+}
// Change illustration
void SetCreditIllust(int a)