From aabf4808da042be90b7fac33d6b072136e034553 Mon Sep 17 00:00:00 2001 From: Arseniy Shestakov Date: Fri, 12 Aug 2016 09:02:14 +0300 Subject: [PATCH] SectorMap: remember all visitable objects in sector for wandering --- AI/VCAI/VCAI.cpp | 5 +---- AI/VCAI/VCAI.h | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/AI/VCAI/VCAI.cpp b/AI/VCAI/VCAI.cpp index c38098bd1..dd8309f29 100644 --- a/AI/VCAI/VCAI.cpp +++ b/AI/VCAI/VCAI.cpp @@ -3045,10 +3045,7 @@ void SectorMap::exploreNewSector(crint3 pos, int num, CCallback * cbp) if(t->visitable) { auto obj = t->visitableObjects.front(); - if (vstd::contains(ai->knownSubterraneanGates, obj)) - { - s.subterraneanGates.push_back (obj); - } + s.visitableObjs.push_back(obj); } } } diff --git a/AI/VCAI/VCAI.h b/AI/VCAI/VCAI.h index 33a1574f1..d42a4ccb5 100644 --- a/AI/VCAI/VCAI.h +++ b/AI/VCAI/VCAI.h @@ -79,7 +79,7 @@ struct SectorMap int id; std::vector tiles; std::vector embarkmentPoints; //tiles of other sectors onto which we can (dis)embark - std::vector subterraneanGates; + std::vector visitableObjs; bool water; //all tiles of sector are land or water Sector() {