ref: a0b2e69a1f97562df89c1dab9448417bc353ad89
parent: b6322d5e0fb11d74ea52fa67c62ba45f0dc07ad6
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Aug 28 20:00:57 EDT 2019
Rearranged some functions to match the original EXE
--- a/src/Ending.cpp
+++ b/src/Ending.cpp
@@ -242,13 +242,23 @@
return TRUE;
}
-// Get number from text (4 digit)
-int GetScriptNumber(const char *text)
+// Update credits
+void ActionCredit()
{
- 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;
+ }
}
// Parse credits
@@ -401,24 +411,15 @@
}
}
-// Update credits
-void ActionCredit()
+// Get number from text (4 digit)
+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;
- }
+ return (text[0] - '0') * 1000 +
+ (text[1] - '0') * 100 +
+ (text[2] - '0') * 10 +
+ text[3] - '0';
}
+
// Change illustration
void SetCreditIllust(int a)
--- a/src/Ending.h
+++ b/src/Ending.h
@@ -48,6 +48,8 @@
void ReleaseCreditScript();
BOOL StartCreditScript();
void ActionCredit();
+void ActionCredit_Read();
+int GetScriptNumber(const char *text);
void SetCreditIllust(int a);
void CutCreditIllust();
int Scene_DownIsland(HWND hWnd, int mode);