Explorar el Código

Do not place obstacles during sieges

Ivan Savenko hace 1 año
padre
commit
90733cfe0e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 	//randomize obstacles
-	if (layout.obstaclesAllowed)
+	if (layout.obstaclesAllowed && !town)
  	{
  	{
 		RandGen r{};
 		RandGen r{};
 		auto ourRand = [&](){ return r.rand(); };
 		auto ourRand = [&](){ return r.rand(); };