fixed some lands in Archimedean dual

This commit is contained in:
Zeno Rogue
2018-08-30 16:10:49 +02:00
parent 706fb5d9f8
commit 80e0ad5cd0
6 changed files with 46 additions and 17 deletions
+10
View File
@@ -453,7 +453,17 @@ bool checkInTree(cell *c, int maxv) {
return false;
}
int loopval = 0;
struct loopchecker {
loopchecker() { loopval++; }
~loopchecker() { loopval--; }
};
void buildEquidistant(cell *c) {
loopchecker lc;
// sometimes crashes in Archimedean
if(loopval > 100) { c->landparam = 0; return; }
if(!c) return;
if(c->landparam) return;
/* if(weirdhyperbolic) {