Turn crew rescued/mood vectors into arrays

Since they're always fixed-size, they don't need to be dynamically-sized
vectors.

entityclass::customcrewmoods is now a proper bool instead of an int now,
and I replaced the hardcoded constant 6 with a static const int Game
attribute to make it easier to change.
This commit is contained in:
Misa
2020-07-02 18:10:52 -07:00
committed by Ethan Lee
parent cd3869f974
commit 1258eb7bf4
5 changed files with 30 additions and 102 deletions

View File

@@ -196,7 +196,6 @@ public:
//Menu interaction stuff
bool mapheld;
int menupage;
//public var crewstats:Array = new Array();
int lastsaved;
int deathcounts;
@@ -278,15 +277,16 @@ public:
bool inintermission;
std::vector<bool> crewstats;
static const int numcrew = 6;
bool crewstats[numcrew];
bool alarmon;
int alarmdelay;
bool blackout;
std::vector<bool> tele_crewstats;
bool tele_crewstats[numcrew];
std::vector<bool> quick_crewstats;
bool quick_crewstats[numcrew];
static const int numunlock = 25;
bool unlock[numunlock];