浏览代码

getVisibleTeleportObjects: use getObj as not verbose

We checking visibility in this function so there no need to send information about that into errorStream.
ArseniyShestakov 10 年之前
父节点
当前提交
eced16945e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/CGameInfoCallback.cpp

+ 1 - 1
lib/CGameInfoCallback.cpp

@@ -853,7 +853,7 @@ std::vector<ObjectInstanceID> CGameInfoCallback::getVisibleTeleportObjects(std::
 {
 	vstd::erase_if(ids, [&](ObjectInstanceID id) -> bool
 	{
-		auto obj = getObj(id);
+		auto obj = getObj(id, false);
 		return player != PlayerColor::UNFLAGGABLE && (!obj || !isVisible(obj->pos, player));
 	});
 	return ids;