Clean-up some code

This commit is contained in:
Clownacy 2020-09-27 20:12:12 +01:00
parent d1dc861bc3
commit 80d5691a7e

View file

@ -283,10 +283,10 @@ BOOL StartCreditScript(void)
// Get number from text (4 digit)
static int GetScriptNumber(const char *text)
{
return (text[0] - '0') * 1000 +
(text[1] - '0') * 100 +
(text[2] - '0') * 10 +
text[3] - '0';
return (text[0] - '0') * 1000
+ (text[1] - '0') * 100
+ (text[2] - '0') * 10
+ (text[3] - '0') * 1;
}
// Parse credits