Turn obj.collect and obj.customcollect into plain arrays

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

Also added an INBOUNDS_ARR() macro to do bounds checks with plain
arrays.
This commit is contained in:
Misa
2020-07-02 19:17:32 -07:00
committed by Ethan Lee
parent 62203efb2c
commit 0664eac7fc
5 changed files with 28 additions and 77 deletions

View File

@@ -183,8 +183,8 @@ public:
std::vector<blockclass> blocks;
bool flags[100];
std::vector<bool> collect;
std::vector<bool> customcollect;
bool collect[100];
bool customcollect[100];
bool skipblocks, skipdirblocks;