Turn unlock/unlocknotify into plain arrays

They're always fixed-size, so there's no need to them to be a dynamic
vector.

I changed their type to `bool` too because they don't need to be `int`s.

Also, I replaced the hardcoded 25 constant with at least a name, in case
people want to change it in the future.
This commit is contained in:
Misa
2020-07-02 16:45:22 -07:00
committed by Ethan Lee
parent c3e7ddca9c
commit 3f448ce439
2 changed files with 13 additions and 14 deletions

View File

@@ -288,8 +288,9 @@ public:
std::vector<bool> quick_crewstats;
std::vector<int> unlock;
std::vector<int> unlocknotify;
static const int numunlock = 25;
bool unlock[numunlock];
bool unlocknotify[numunlock];
bool anything_unlocked();
int stat_trinkets;
bool fullscreen;