Turn obj.flags into an array instead of a vector

Since it's always fixed-size, there's no reason for it to be a vector.
This commit is contained in:
Misa
2020-07-02 18:22:19 -07:00
committed by Ethan Lee
parent 1258eb7bf4
commit 62203efb2c
4 changed files with 14 additions and 52 deletions

View File

@@ -69,15 +69,14 @@ void entityclass::init()
SDL_memset(customcrewmoods, true, sizeof(customcrewmoods));
flags.resize(100);
resetallflags();
collect.resize(100);
customcollect.resize(100);
}
void entityclass::resetallflags()
{
flags.clear();
flags.resize(100);
SDL_memset(flags, false, sizeof(flags));
}
int entityclass::swncolour( int t )