Add queued update triggers for zoom-out updates - deals with file time

resolution issues on Linux (1 second is too long to be reliable)
This commit is contained in:
Mike Primm 2011-06-24 08:25:26 -05:00
parent d63db655d8
commit 214fec208d
5 changed files with 121 additions and 88 deletions

View file

@ -317,6 +317,7 @@ public class DefaultTileRenderer implements MapTileRenderer {
saveZoomedTile(zmtile, zoomFile, zimg, ox, oy, null);
MapManager.mapman.pushUpdate(zmtile.getWorld(),
new Client.Tile(zmtile.getFilename()));
zmtile.getDynmapWorld().enqueueZoomOutUpdate(zoomFile);
ztile_updated = true;
}
KzedMap.freeBufferedImage(zimg);
@ -331,6 +332,7 @@ public class DefaultTileRenderer implements MapTileRenderer {
saveZoomedTile(zmtile, zoomFile_day, zimg_day, ox, oy, "day");
MapManager.mapman.pushUpdate(zmtile.getWorld(),
new Client.Tile(zmtile.getDayFilename()));
zmtile.getDynmapWorld().enqueueZoomOutUpdate(zoomFile_day);
ztile_updated = true;
}
KzedMap.freeBufferedImage(zimg_day);