handlers for createStep and newmap

This commit is contained in:
Zeno Rogue committed 2018-12-11 22:10:53 +01:00
1 parent ce996c82fe
commit bf7bb61d35
4 files changed
+11 -3

No files matched your search

+5 -1
View File
@@ -1165,11 +1165,15 @@ euc_pointer euclideanAtCreate(int vec) {
return ep;
}
hookset<hrmap*()> *hooks_newmap;
// initializer (also inits origin from heptagon.cpp)
void initcells() {
DEBB(DF_INIT, (debugfile,"initcells\n"));
if(archimedean) currentmap = arcm::new_map();
hrmap* res = callhandlers((hrmap*)nullptr, hooks_newmap);
if(res) currentmap = res;
else if(archimedean) currentmap = arcm::new_map();
else if(fulltorus) currentmap = new hrmap_torus;
else if(euclid) currentmap = new hrmap_euclidean;
else if(sphere) currentmap = new hrmap_spherical;