#include <string.h> // for memset
-#define ARRAYSIZE 1024 // static array for BeginFind & co.
+#define CELLSARRAYSIZE 1024 // static array for BeginFind & co.
#define ALLOCBOXES 16 // number of cellboxes to alloc at once
#define MAXDEAD 8 // tics before removing cellbox from list
m_boxes[i] = NULL;
// state vars for BeginFind & FindMore
- m_cells = new LifeCell[ARRAYSIZE];
+ m_cells = new LifeCell[CELLSARRAYSIZE];
m_ncells = 0;
m_findmore = false;
m_changed = false;
continue;
// check whether there is enough space left in the array
- if (m_ncells > (ARRAYSIZE - 64))
+ if (m_ncells > (CELLSARRAYSIZE - 64))
{
*ncells = m_ncells;
return false;
continue;
// check whether there is enough space left in the array
- if (m_ncells > (ARRAYSIZE - 64))
+ if (m_ncells > (CELLSARRAYSIZE - 64))
{
*ncells = m_ncells;
return false;