1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

getFreeTiles: filter ROCK tiles. Fix issue 1870

This commit is contained in:
ArseniyShestakov 2015-11-25 09:12:09 +03:00
parent 745ab7c7df
commit 3d8f67f864

View File

@ -38,7 +38,7 @@ void CPrivilagedInfoCallback::getFreeTiles (std::vector<int3> &tiles) const
for (int yd = 0; yd < gs->map->height; yd++)
{
tinfo = getTile(int3 (xd,yd,zd));
if (tinfo->terType != ETerrainType::WATER && !tinfo->blocked) //land and free
if (tinfo->terType != ETerrainType::WATER && tinfo->terType != ETerrainType::ROCK && !tinfo->blocked) //land and free
tiles.push_back (int3 (xd,yd,zd));
}
}