mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01:00
Don't use std::count() in Game::crewmates()
The less STL usage, the better.
This commit is contained in:
parent
3774ec390c
commit
d4034661e2
1 changed files with 9 additions and 1 deletions
|
@ -7654,5 +7654,13 @@ int Game::trinkets()
|
||||||
|
|
||||||
int Game::crewmates()
|
int Game::crewmates()
|
||||||
{
|
{
|
||||||
return std::count(obj.customcollect.begin(), obj.customcollect.end(), true);
|
int temp = 0;
|
||||||
|
for (size_t i = 0; i < obj.customcollect.size(); i++)
|
||||||
|
{
|
||||||
|
if (obj.customcollect[i])
|
||||||
|
{
|
||||||
|
temp++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return temp;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue