From df0578a1fe074531e430e6cad6333c2f0dc77375 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 2 Jan 2019 16:18:49 +0100 Subject: [PATCH] cdata is now initialized to 0, or ALL if reptilecheat is on --- cell.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cell.cpp b/cell.cpp index 4d219309..191de2e3 100644 --- a/cell.cpp +++ b/cell.cpp @@ -1549,7 +1549,10 @@ cdata *getHeptagonCdata(heptagon *h) { if(sphere || quotient) h = currentmap->gamestart()->master; if(h == currentmap->gamestart()->master) { - return h->cdata = new cdata(orig_cdata); + h->cdata = new cdata(orig_cdata); + for(int& v: h->cdata->val) v = 0; + h->cdata->bits = reptilecheat ? (1 << 21) - 1 : 0; + return h->cdata; } cdata mydata = *getHeptagonCdata(h->move(0));