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