1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 05:58:30 +02:00

Use for-loop in Game::crewrescued()

It's better to not use an STL function here.
This commit is contained in:
Misa 2020-04-09 16:01:53 -07:00 committed by Ethan Lee
parent a37715abb6
commit 45e7a9db3e

View File

@ -7620,7 +7620,15 @@ void Game::swnpenalty()
int Game::crewrescued()
{
return std::count(crewstats.begin(), crewstats.end(), true);
int temp = 0;
for (size_t i = 0; i < crewstats.size(); i++)
{
if (crewstats[i])
{
temp++;
}
}
return temp;
}
void Game::resetgameclock()