1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-07-07 18:42:42 +00:00

fixed bugs with manual celllisters

This commit is contained in:
Zeno Rogue
2018-06-28 13:35:03 +02:00
parent d11044a80a
commit cf8dffd6b8
8 changed files with 38 additions and 37 deletions
+2 -2
View File
@@ -5766,7 +5766,7 @@ void moveNormals(eMonster param) {
}
}
void markAmbush(cell *c, celllister& cl) {
void markAmbush(cell *c, manual_celllister& cl) {
if(!cl.add(c)) return;
forCellEx(c2, c)
if(c2->cpdist < c->cpdist)
@@ -5778,7 +5778,7 @@ bool ambushed;
void checkAmbushState() {
if(havewhat & HF_HUNTER) {
celllister cl(manual);
manual_celllister cl;
for(cell *c: dcal) {
if(c->monst == moHunterDog) {
if(c->cpdist > ambush_distance)