mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 18:04:09 +03:00
Turn star and backbox vectors into arrays
There's always 50 stars and always 18 backboxes, there's no reason to have them be vectors.
This commit is contained in:
@@ -280,14 +280,16 @@ public:
|
||||
int cutscenebarspos;
|
||||
int oldcutscenebarspos;
|
||||
|
||||
std::vector<SDL_Rect> stars;
|
||||
std::vector<int> starsspeed;
|
||||
static const int numstars = 50;
|
||||
SDL_Rect stars[numstars];
|
||||
int starsspeed[numstars];
|
||||
|
||||
static const int numbackboxes = 18;
|
||||
int spcol, spcoldel;
|
||||
std::vector<SDL_Rect> backboxes;
|
||||
std::vector<int> backboxvx;
|
||||
std::vector<int> backboxvy;
|
||||
std::vector<float> backboxint;
|
||||
SDL_Rect backboxes[numbackboxes];
|
||||
int backboxvx[numbackboxes];
|
||||
int backboxvy[numbackboxes];
|
||||
float backboxint[numbackboxes];
|
||||
|
||||
int warpskip, warpfcol, warpbcol;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user