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 authored and Ethan Lee committed 2020-07-06 11:19:24 -04:00
1 parent 00cb033594
commit 5f91bdd073
2 files changed
+3 -3

No files matched your search

+2 -2
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;
+1 -1
View File
@@ -51,7 +51,7 @@ public:
int glow;
int slowsine;
int glowdir;
std::vector<int> splitseconds;
int splitseconds[30];
};
extern UtilityClass help;