Refactor blocks to not use the 'active' system

This removes the variables obj.nblocks, as well as removing the 'active'
attribute from the block object. Now every block is guaranteed to be
real without having to check the 'active' variable.

Removing a block while iterating now uses the removeblock_iter() macro.
This commit is contained in:
Misa
2020-04-03 16:11:02 -07:00
committed by Ethan Lee
parent 7689241d3a
commit f10ac88c1a
4 changed files with 168 additions and 216 deletions

View File

@@ -7,7 +7,6 @@ blockclass::blockclass()
void blockclass::clear()
{
active = false;
type = 0;
trigger = 0;