improved in the OO fashion: draw, relative_matrix, create_step, and several minor functions are now virtual in hrmap

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:38:44 +02:00
1 parent d8428f2ec3
commit 78d88b5909
19 files changed
+655 -651

No files matched your search

+2 -2
View File
@@ -718,7 +718,7 @@ void compute_horocycle(heptagon *alt) {
set<heptagon*> region;
for(int i=0; i<LOOKUP-1; i++) {
for(auto h: hs[i]) {
generateAlts(h);
currentmap->generateAlts(h);
for(int j=0; j<S7; j++) {
if(h->move(j)->alt->alt != master->alt->alt) continue;
region.insert(h->move(j));
@@ -789,7 +789,7 @@ int celldist(cell *c, bool alts) {
}
}
if(doalts == 0) {
generateAlts(master);
currentmap->generateAlts(master);
for(int i=0; i<S7; i++) if(master->move(i)->alt == master->alt->move[0] && periodmap[master->move(i)].celldists[true].empty())
compute_horocycle(master);
}