Unindent from collapsing empty pText check

As always, the diff algorithms do terribly with unindentation, so I'm
doing the actual unindenting in this commit.
This commit is contained in:
Misa
2021-02-12 13:53:01 -08:00
committed by Ethan Lee
parent 8d5829dd26
commit ca973a6547
2 changed files with 47 additions and 47 deletions

View File

@@ -446,11 +446,11 @@ void Game::updatecustomlevelstats(std::string clevel, int cscore)
if (pKey == #ARRAY_NAME && pText[0] != '\0') \
{ \
std::string TextString = pText; \
std::vector<std::string> values = split(TextString, ','); \
for (int i = 0; i < VVV_min(SDL_arraysize(DEST), values.size()); i++) \
{ \
DEST[i] = help.Int(values[i].c_str()); \
} \
std::vector<std::string> values = split(TextString, ','); \
for (int i = 0; i < VVV_min(SDL_arraysize(DEST), values.size()); i++) \
{ \
DEST[i] = help.Int(values[i].c_str()); \
} \
}
#define LOAD_ARRAY(ARRAY_NAME) LOAD_ARRAY_RENAME(ARRAY_NAME, ARRAY_NAME)
@@ -542,11 +542,11 @@ void Game::loadcustomlevelstats()
if (pKey == "customlevelstats" && pText[0] != '\0')
{
std::string TextString = (pText);
std::vector<std::string> values = split(TextString,'|');
for(size_t i = 0; i < values.size(); i++)
{
customlevelnames.push_back(values[i]);
}
std::vector<std::string> values = split(TextString,'|');
for(size_t i = 0; i < values.size(); i++)
{
customlevelnames.push_back(values[i]);
}
}
}