浏览代码

Do not place obstacles during sieges

Ivan Savenko 1 年之前
父节点
当前提交
90733cfe0e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/battle/BattleInfo.cpp

+ 1 - 1
lib/battle/BattleInfo.cpp

@@ -209,7 +209,7 @@ BattleInfo * BattleInfo::setupBattle(const int3 & tile, TerrainId terrain, const
 	}
 
 	//randomize obstacles
-	if (layout.obstaclesAllowed)
+	if (layout.obstaclesAllowed && !town)
  	{
 		RandGen r{};
 		auto ourRand = [&](){ return r.rand(); };