From 332bae84de0dc9e02ad829dddbe41e35130ba977 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 10 Jul 2018 23:03:02 +0200 Subject: [PATCH] debugging display is used with both cheater and autocheat --- debug.cpp | 2 +- graph.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/debug.cpp b/debug.cpp index 92a140ae..ac1246f9 100644 --- a/debug.cpp +++ b/debug.cpp @@ -433,7 +433,7 @@ void raiseBuggyGeneration(cell *c, const char *s) { // return; - if(cheater) { + if(cheater || autocheat) { drawbugs.emplace_back(cellwalker(c,0), 0xFF000080); modalDebug(c); drawbugs.pop_back(); diff --git a/graph.cpp b/graph.cpp index ac57ee3c..e16a37c9 100644 --- a/graph.cpp +++ b/graph.cpp @@ -3260,9 +3260,9 @@ bool dodrawcell(cell *c) { if(c->pathdist == PINFD && geometry != gTorus) return false; // do not display not fully generated cells, unless a cheater - if(c->mpdist > 7 && !cheater) return false; + if(c->mpdist > 7 && !cheater && !autocheat) return false; // in the Yendor Challenge, scrolling back is forbidden - if(c->cpdist > 7 && yendor::on && !cheater) return false; + if(c->cpdist > 7 && yendor::on && !cheater && !autocheat) return false; return true; } @@ -3555,7 +3555,7 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) { // int col = 0xFFFFFF - 0x20 * c->maxdist - 0x2000 * c->cpdist; - if(!buggyGeneration && c->mpdist > 8 && !cheater) return; // not yet generated + if(!buggyGeneration && c->mpdist > 8 && !cheater && !autocheat) return; // not yet generated /* if(!buggyGeneration && c->mpdist > 7 && !cheater) { int cd = c->mpdist; string label = its(cd);