mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-27 11:57:40 +00:00
created a function init_heptagon which does tailored_alloc and clears the data
This commit is contained in:
@@ -27,14 +27,11 @@ struct hrmap_spherical : hrmap_standard {
|
||||
|
||||
hrmap_spherical() {
|
||||
for(int i=0; i<spherecells(); i++) {
|
||||
heptagon& h = *(dodecahedron[i] = tailored_alloc<heptagon> (S7));
|
||||
heptagon& h = *(dodecahedron[i] = init_heptagon(S7));
|
||||
h.s = hsOrigin;
|
||||
h.emeraldval = i;
|
||||
h.zebraval = i;
|
||||
h.fiftyval = i;
|
||||
h.rval0 = h.rval1 = 0;
|
||||
h.alt = NULL;
|
||||
h.cdata = NULL;
|
||||
h.c.fullclear();
|
||||
h.fieldval = i;
|
||||
if(!IRREGULAR) h.c7 = newCell(S7, &h);
|
||||
|
||||
Reference in New Issue
Block a user