mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user