From 9ca670af20f94355a12574cbad151d4eb3b6a068 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 7 Nov 2021 10:52:25 +0100 Subject: [PATCH] do not remove faraway treasures in 3D geometries (they are not that far away...) --- environment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment.cpp b/environment.cpp index 8a59df27..18dadaf7 100644 --- a/environment.cpp +++ b/environment.cpp @@ -357,7 +357,7 @@ EX void bfs() { // remove treasures if(!peace::on && c2->item && c2->cpdist == distlimit && itemclass(c2->item) == IC_TREASURE && - c2->item != itBabyTortoise && + c2->item != itBabyTortoise && WDIM != 3 && (items[c2->item] >= (ls::any_chaos()?10:20) + currentLocalTreasure || getGhostcount() >= 2)) { c2->item = itNone; if(c2->land == laMinefield) { c2->landparam &= ~3; }