From f6b5d068fdc72b477a3df405ddd85f5cac32234c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 11 Mar 2020 10:34:20 +0100 Subject: [PATCH] Thumpers are now still considered when one cell outside the game range --- environment.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/environment.cpp b/environment.cpp index 9429ed9f..facebdb3 100644 --- a/environment.cpp +++ b/environment.cpp @@ -147,7 +147,7 @@ EX void computePathdist(eMonster param) { pathqm.push_back(c); continue; } - if(c->cpdist > limit && !(c->land == laTrollheim && turncount < c->landparam)) continue; + if(c->cpdist > limit && !(c->land == laTrollheim && turncount < c->landparam) && c->wall != waThumperOn) continue; int d = c->pathdist; if(d == PINFD - 1) continue; for(int j=0; jtype; j++) { @@ -435,6 +435,12 @@ EX void bfs() { } } + for(int i=first7; iwall == waThumperOn) { + targets.push_back(c2); + } + while(recalcTide) { recalcTide = false; for(int i=0; i