2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 19:44:55 +00:00

HUD rendering bug fixes

This commit is contained in:
Jack Andersen
2018-01-05 20:50:42 -10:00
parent a78c4c6b36
commit 168fab6b14
47 changed files with 254 additions and 120 deletions

View File

@@ -71,19 +71,17 @@ s32 CTextParser::ParseInt(const char16_t* str, int len, bool signVal)
bool CTextParser::Equals(const char16_t* str, int len, const char16_t* other)
{
int i=0;
for (; *other && i<len ; ++i, ++str, ++other)
for (int i=0 ; *other && i<len ; ++i, ++str, ++other)
{
if (*str != *other)
return false;
}
return other[i] == u'\0';
return *other == u'\0';
}
bool CTextParser::BeginsWith(const char16_t* str, int len, const char16_t* other)
{
int i=0;
for (; *other && i<len ; ++i, ++str, ++other)
for (int i=0 ; *other && i<len ; ++i, ++str, ++other)
{
if (*str != *other)
return false;