mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user