Turn map.explored, map.roomdeaths(final) into plain arrays

They're always fixed-size anyways, there's no need for them to be
vectors.

Also used the new INBOUNDS_ARR() macro for the map.explored bounds
checks in Script.cpp, and made map.explored a proper bool array instead
of an int array.
This commit is contained in:
Misa
2020-07-02 21:01:09 -07:00
committed by Ethan Lee
parent 118008d824
commit cb3afa295a
4 changed files with 22 additions and 62 deletions

View File

@@ -79,11 +79,11 @@ public:
void twoframedelayfix();
std::vector <int> roomdeaths;
std::vector <int> roomdeathsfinal;
int roomdeaths[20 * 20];
int roomdeathsfinal[20 * 20];
std::vector <int> areamap;
std::vector <int> contents;
std::vector <int> explored;
bool explored[20 * 20];
std::vector <int> vmult;
int background;