Thumpers are now still considered when one cell outside the game range

This commit is contained in:
Zeno Rogue 2020-03-11 10:34:20 +01:00
parent 0d87481d29
commit f6b5d068fd
1 changed files with 7 additions and 1 deletions

View File

@ -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; j<c->type; j++) {
@ -435,6 +435,12 @@ EX void bfs() {
}
}
for(int i=first7; i<isize(dcal); i++)
forCellEx(c2, dcal[i])
if(c2->wall == waThumperOn) {
targets.push_back(c2);
}
while(recalcTide) {
recalcTide = false;
for(int i=0; i<isize(dcal); i++) checkTide(dcal[i]);