Turn time trial stat vectors into plain arrays

These are the besttimes, besttrinkets, bestlives, and bestrank
attributes of Game. bestframes was already a plain array.

As these are always fixed-sized, there's no reason for them to be
vectors. Also, I put their size in a static const int so it's easy to
change how many of them there are.
This commit is contained in:
Misa
2020-07-02 17:09:30 -07:00
committed by Ethan Lee
parent 56f06bd853
commit cd3869f974
2 changed files with 20 additions and 67 deletions

View File

@@ -297,11 +297,12 @@ public:
int bestgamedeaths;
std::vector<int>besttimes;
int bestframes[6];
std::vector<int>besttrinkets;
std::vector<int>bestlives;
std::vector<int> bestrank;
static const int numtrials = 6;
int besttimes[numtrials];
int bestframes[numtrials];
int besttrinkets[numtrials];
int bestlives[numtrials];
int bestrank[numtrials];
std::string tele_gametime;
int tele_trinkets;