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