1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-18 10:38:31 +02:00

Turn splitseconds into an array

It's always 30, there's no need for it to be a vector.
This commit is contained in:
Misa 2020-07-03 02:37:15 -07:00 committed by Ethan Lee
parent 00cb033594
commit 5f91bdd073
2 changed files with 3 additions and 3 deletions

View File

@ -85,9 +85,9 @@ UtilityClass::UtilityClass() :
glow(0),
glowdir(0)
{
for (int i = 0; i < 30; i++)
for (size_t i = 0; i < SDL_arraysize(splitseconds); i++)
{
splitseconds.push_back(int((i * 100) / 30));
splitseconds[i] = (i * 100) / 30;
}
slowsine = 0;

View File

@ -51,7 +51,7 @@ public:
int glow;
int slowsine;
int glowdir;
std::vector<int> splitseconds;
int splitseconds[30];
};
extern UtilityClass help;