MapDatabase: use TileClipper buffer as half the tile size, #231

This commit is contained in:
Emux 2016-11-07 21:52:45 +02:00
parent 439f2b20ff
commit a709bd2623

View File

@ -382,10 +382,14 @@ public class MapDatabase implements ITileDataSource {
long numCols = queryParameters.toBlockX - queryParameters.fromBlockX; long numCols = queryParameters.toBlockX - queryParameters.fromBlockX;
//log.debug(numCols + "/" + numRows + " " + mCurrentCol + " " + mCurrentRow); //log.debug(numCols + "/" + numRows + " " + mCurrentCol + " " + mCurrentRow);
xmin = -16;
ymin = -16; // Buffer is half the tile size
xmax = Tile.SIZE + 16; int buffer = Tile.SIZE / 2;
ymax = Tile.SIZE + 16;
xmin = -buffer;
ymin = -buffer;
xmax = Tile.SIZE + buffer;
ymax = Tile.SIZE + buffer;
if (numRows > 0) { if (numRows > 0) {
int w = (int) (Tile.SIZE / (numCols + 1)); int w = (int) (Tile.SIZE / (numCols + 1));