From 0028438a8d035c7e8165f5008353c3f5132d42a7 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 9 Feb 2019 12:23:20 +0100 Subject: [PATCH 1/2] back button in pattern selector --- pattern2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pattern2.cpp b/pattern2.cpp index 0623a5e0..62b13669 100644 --- a/pattern2.cpp +++ b/pattern2.cpp @@ -1500,7 +1500,8 @@ namespace patterns { dialog::addBreak(100); dialog::addBoolItem(XLATN(winf[waInvisibleFloor].name), canvas_invisible, 'i'); - + + dialog::addBack(); dialog::display(); keyhandler = [instant] (int sym, int uni) { From 075ab6f1e8878060b1ff99ff79313c0ba75ccfc4 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 9 Feb 2019 12:23:45 +0100 Subject: [PATCH 2/2] allowChangeRange() used where it should --- hypgraph.cpp | 4 ++-- system.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hypgraph.cpp b/hypgraph.cpp index 1460dd27..3050b087 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -1519,8 +1519,8 @@ bool do_draw(cell *c) { // do not display out of range cells, unless on torus if(c->pathdist == PINFD && geometry != gTorus && vid.use_smart_range == 0) return false; - // do not display not fully generated cells, unless a cheater - if(c->mpdist > 7 && !cheater && !autocheat) return false; + // do not display not fully generated cells, unless changing range allowed + if(c->mpdist > 7 && !allowChangeRange()) return false; // in the Yendor Challenge, scrolling back is forbidden if(c->cpdist > 7 && yendor::on && !cheater && !autocheat) return false; diff --git a/system.cpp b/system.cpp index 7792e7d2..581b2999 100644 --- a/system.cpp +++ b/system.cpp @@ -301,7 +301,7 @@ void initgame() { if(quotient || sphere) for(cell *c: currentmap->allcells()) setdist(c, 8, NULL); - if(!cheater) { + if(!allowChangeRange()) { gamerange_bonus = genrange_bonus = 0; if(vid.use_smart_range == 2) vid.use_smart_range = 1; }