1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-15 20:03:15 +02:00

Compile fix for previous commit.

This commit is contained in:
DjWarmonger
2012-05-15 09:21:32 +00:00
parent 8de71c2b39
commit fb34a48eec

View File

@@ -823,12 +823,12 @@ std::pair<SDL_Surface *, bool> CMapHandler::getVisBitmap( const int3 & pos, cons
13, 27, 44, 44, 13, 27, 44, 44, 8, 8, 10, 10, 8, 8, 10, 10 //256
};
auto getTile = [&](int dx, int dy)
auto getTile = [&](int dx, int dy)->bool
{
if ( dx + pos.x < 0 || dx + pos.x >= sizes.x
|| dy + pos.y < 0 || dy + pos.y >= sizes.y)
return false;
return bool(visibilityMap[dx+pos.x][dy+pos.y][pos.z]);
return visibilityMap[dx+pos.x][dy+pos.y][pos.z];
};
//is tile visible. arrangement: (like num keyboard)