1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

attempt to fix travis build

This commit is contained in:
AlexVinS 2016-07-28 13:15:19 +03:00
parent 5a1383fea8
commit 57e588cba1

View File

@ -498,7 +498,7 @@ void CMapGenerator::createConnections()
middleTile.x /= tilesCount;
middleTile.y /= tilesCount;
middleTile.z /= tilesCount; //TODO: implement division operator for int3?
boost::sort(middleTiles, [middleTile](int3 &lhs, int3 &rhs) -> bool
boost::sort(middleTiles, [middleTile](const int3 &lhs, const int3 &rhs) -> bool
{
//choose tiles with both corrdinates in the middle
return lhs.mandist2d(middleTile) < rhs.mandist2d(middleTile);
@ -556,7 +556,6 @@ void CMapGenerator::createConnections()
auto sgt = VLC->objtypeh->getHandlerFor(Obj::SUBTERRANEAN_GATE, 0)->getTemplates().front();
bool stop = false;
for (auto tile : commonTiles)
{
tile.z = posA.z;