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:
Misa
2020-07-03 02:31:13 -07:00
committed by Ethan Lee
parent 4c6ab6e6b7
commit 450cf1a31e
2 changed files with 24 additions and 19 deletions

View File

@@ -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;