This is also likely more accurate to the source
This commit is contained in:
parent
124aebaaa2
commit
4000615b45
1 changed files with 23 additions and 27 deletions
|
@ -52,9 +52,6 @@ static CREDIT Credit;
|
||||||
static STRIP Strip[MAX_STRIP];
|
static STRIP Strip[MAX_STRIP];
|
||||||
static ILLUSTRATION Illust;
|
static ILLUSTRATION Illust;
|
||||||
|
|
||||||
static int GetScriptNumber(const char *text);
|
|
||||||
static void ActionCredit_Read(void);
|
|
||||||
|
|
||||||
// Update casts
|
// Update casts
|
||||||
void ActionStripper(void)
|
void ActionStripper(void)
|
||||||
{
|
{
|
||||||
|
@ -281,24 +278,13 @@ BOOL StartCreditScript(void)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update credits
|
// Get number from text (4 digit)
|
||||||
void ActionCredit(void)
|
static int GetScriptNumber(const char *text)
|
||||||
{
|
{
|
||||||
if (Credit.offset >= Credit.size)
|
return (text[0] - '0') * 1000 +
|
||||||
return;
|
(text[1] - '0') * 100 +
|
||||||
|
(text[2] - '0') * 10 +
|
||||||
// Update script, or if waiting, decrement the wait value
|
text[3] - '0';
|
||||||
switch (Credit.mode)
|
|
||||||
{
|
|
||||||
case 1:
|
|
||||||
ActionCredit_Read();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 2:
|
|
||||||
if (--Credit.wait <= 0)
|
|
||||||
Credit.mode = 1;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse credits
|
// Parse credits
|
||||||
|
@ -451,15 +437,25 @@ static void ActionCredit_Read(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get number from text (4 digit)
|
// Update credits
|
||||||
static int GetScriptNumber(const char *text)
|
void ActionCredit(void)
|
||||||
{
|
{
|
||||||
return (text[0] - '0') * 1000 +
|
if (Credit.offset >= Credit.size)
|
||||||
(text[1] - '0') * 100 +
|
return;
|
||||||
(text[2] - '0') * 10 +
|
|
||||||
text[3] - '0';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
// 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
|
// Change illustration
|
||||||
void SetCreditIllust(int a)
|
void SetCreditIllust(int a)
|
||||||
|
|
Loading…
Add table
Reference in a new issue