mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Refactor entities and linecrosskludge to not use the 'active' system
This removes the variables obj.nentity and obj.nlinecrosskludge, as well as removing the 'active' attribute from the entity class object. Now every entity you access is guaranteed to be real and you don't have to check the 'active' variable. The biggest part of this is changing createentity() to modify a newly-created entity object and push it back instead of already modifying an indice in obj.entities. As well, removing an entity now uses the new obj.removeentity() function and removeentity_iter() macro.
This commit is contained in:
@@ -8,7 +8,6 @@ entclass::entclass()
|
||||
void entclass::clear()
|
||||
{
|
||||
// Set all values to a default, required for creating a new entity
|
||||
active = false;
|
||||
invis = false;
|
||||
type = 0;
|
||||
size = 0;
|
||||
|
||||
Reference in New Issue
Block a user