From 80d5691a7eb4f6b7fb808565db691f4e4997f702 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sun, 27 Sep 2020 20:12:12 +0100 Subject: [PATCH] Clean-up some code --- src/Ending.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Ending.cpp b/src/Ending.cpp index efdee914..0edbbf4f 100644 --- a/src/Ending.cpp +++ b/src/Ending.cpp @@ -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