cdata is now initialized to 0, or ALL if reptilecheat is on

This commit is contained in:
Zeno Rogue 2019-01-02 16:18:49 +01:00
parent 0a5fd1a328
commit df0578a1fe
1 changed files with 4 additions and 1 deletions

View File

@ -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));