Clean-up some code
This commit is contained in:
parent
d1dc861bc3
commit
80d5691a7e
1 changed files with 4 additions and 4 deletions
|
@ -283,10 +283,10 @@ BOOL StartCreditScript(void)
|
||||||
// Get number from text (4 digit)
|
// Get number from text (4 digit)
|
||||||
static int GetScriptNumber(const char *text)
|
static int GetScriptNumber(const char *text)
|
||||||
{
|
{
|
||||||
return (text[0] - '0') * 1000 +
|
return (text[0] - '0') * 1000
|
||||||
(text[1] - '0') * 100 +
|
+ (text[1] - '0') * 100
|
||||||
(text[2] - '0') * 10 +
|
+ (text[2] - '0') * 10
|
||||||
text[3] - '0';
|
+ (text[3] - '0') * 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse credits
|
// Parse credits
|
||||||
|
|
Loading…
Add table
Reference in a new issue