1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Do not place obstacles during sieges

This commit is contained in:
Ivan Savenko 2024-09-14 11:02:23 +00:00
parent 95df330843
commit 90733cfe0e

View File

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