Преглед изворни кода

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(); };