ref: 80d5691a7eb4f6b7fb808565db691f4e4997f702
parent: d1dc861bc3aaa98f86fa0b45297a3f044cf97486
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun Sep 27 16:12:12 EDT 2020
Clean-up some code
--- a/src/Ending.cpp
+++ b/src/Ending.cpp
@@ -283,10 +283,10 @@
// 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