From 3d8f67f864cf882d91fedbed75833676a8ce7a11 Mon Sep 17 00:00:00 2001 From: ArseniyShestakov Date: Wed, 25 Nov 2015 09:12:09 +0300 Subject: [PATCH] getFreeTiles: filter ROCK tiles. Fix issue 1870 --- lib/IGameCallback.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IGameCallback.cpp b/lib/IGameCallback.cpp index f71d2fa15..8f8f3b30c 100644 --- a/lib/IGameCallback.cpp +++ b/lib/IGameCallback.cpp @@ -38,7 +38,7 @@ void CPrivilagedInfoCallback::getFreeTiles (std::vector &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)); } }