mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-09 10:29:45 +01: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:
parent
00cb033594
commit
5f91bdd073
2 changed files with 3 additions and 3 deletions
|
@ -85,9 +85,9 @@ UtilityClass::UtilityClass() :
|
||||||
glow(0),
|
glow(0),
|
||||||
glowdir(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;
|
slowsine = 0;
|
||||||
|
|
|
@ -51,7 +51,7 @@ public:
|
||||||
int glow;
|
int glow;
|
||||||
int slowsine;
|
int slowsine;
|
||||||
int glowdir;
|
int glowdir;
|
||||||
std::vector<int> splitseconds;
|
int splitseconds[30];
|
||||||
};
|
};
|
||||||
|
|
||||||
extern UtilityClass help;
|
extern UtilityClass help;
|
||||||
|
|
Loading…
Reference in a new issue