mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Use for-loop in Game::crewrescued()
It's better to not use an STL function here.
This commit is contained in:
parent
a37715abb6
commit
45e7a9db3e
1 changed files with 9 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue