Declare obj.flags a vector of bools instead of ints

It's treated like a bool anyway, so might as well make it one.

This also necessitates updating every single instance where it or an
element inside it is used, too.
This commit is contained in:
Misa authored and Ethan Lee committed 2020-04-09 19:20:31 -04:00
1 parent 2f1c400c9a
commit abfae6b4d7
13 files changed
+213 -213

No files matched your search

+1 -1
View File
@@ -1415,7 +1415,7 @@ std::vector<std::string> otherlevelclass::loadlevel(int rx, int ry)
obj.createentity(136, 80, 22, 18); // (shiny trinket)
obj.createentity(136, 32, 22, 19); // (shiny trinket)
if(!game.nocutscenes && obj.flags[70]==0)
if(!game.nocutscenes && !obj.flags[70])
{
obj.createblock(1, 304, 0, 16, 240, 48);
}