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
@@ -1060,7 +1060,7 @@ void mapclass::gotoroom(int rx, int ry)
//textbox thingy. if tag five is not set when changing room, reset the game state. (tag 5 is set when you get back to the ship)
if(!game.intimetrial && !custommode)
{
if (obj.flags[5] == 0 && !finalmode)
if (!obj.flags[5] && !finalmode)
{
game.state = 0;
if (game.roomx == 113 && game.roomy == 104)