Browse Source

getFreeTiles: filter ROCK tiles. Fix issue 1870

ArseniyShestakov 10 years ago
parent
commit
3d8f67f864
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/IGameCallback.cpp

+ 1 - 1
lib/IGameCallback.cpp

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