瀏覽代碼

VCAI::tileHidden: added clearPathsInfo

Sector map likely updated anyway after AI turn starts, but cleaning of heroesUnableToExplore when tile hidden feels reasonable.
Arseniy Shestakov 9 年之前
父節點
當前提交
91c298bdaa
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      AI/VCAI/VCAI.cpp

+ 1 - 0
AI/VCAI/VCAI.cpp

@@ -288,6 +288,7 @@ void VCAI::tileHidden(const std::unordered_set<int3, ShashInt3> &pos)
 	NET_EVENT_HANDLER;
 
 	validateVisitableObjs();
+	clearPathsInfo();
 }
 
 void VCAI::tileRevealed(const std::unordered_set<int3, ShashInt3> &pos)