From 90733cfe0e984e447249742a59844d362d3556c8 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Sat, 14 Sep 2024 11:02:23 +0000 Subject: [PATCH] Do not place obstacles during sieges --- lib/battle/BattleInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/battle/BattleInfo.cpp b/lib/battle/BattleInfo.cpp index 401a656d2..5bbebc49c 100644 --- a/lib/battle/BattleInfo.cpp +++ b/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(); };