From 64a77827f6e608685cecc159fcb5b4289c05922e Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 30 Aug 2018 16:08:28 +0200 Subject: [PATCH] fixed kraken_pseudohept returning negated values --- landgen.cpp | 2 +- pattern2.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/landgen.cpp b/landgen.cpp index ba825940..a486d512 100644 --- a/landgen.cpp +++ b/landgen.cpp @@ -1441,7 +1441,7 @@ void giantLandSwitch(cell *c, int d, cell *from) { case laKraken: if(d == 9) c->wall = waSea; - if(d == 8 && c->land == laKraken && pseudohept(c) && hrand(1000) <= 2) { + if(d == 8 && c->land == laKraken && kraken_pseudohept(c) && hrand(1000) <= 2) { c->wall = waNone; forCellEx(c2, c) c2->wall = waNone; } diff --git a/pattern2.cpp b/pattern2.cpp index 99ec0f98..08fd9f32 100644 --- a/pattern2.cpp +++ b/pattern2.cpp @@ -1233,11 +1233,11 @@ bool kraken_pseudohept(cell *c) { else if(IRREGULAR) return c->type != 6; else if(archimedean && PURE) - return c->type == isize(arcm::current.triangles[0]); + return c->type != isize(arcm::current.triangles[0]); else if(archimedean && BITRUNCATED) return pseudohept(c); else if(archimedean && DUAL) - return true; + return false; else if(!euclid && S3 == 3 && !(S7&1) && gp_threecolor() == 1) return ishept(c); else