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:
parent
95df330843
commit
90733cfe0e
@ -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(); };
|
||||
|
Loading…
x
Reference in New Issue
Block a user