Handle bigmap versus bigworld, allows HDMap to be big-map-style independent of bigworld setting. Add bigmap setting on KzedMap and FlatMap too.

This commit is contained in:
Mike Primm 2011-07-09 15:51:32 -05:00
parent 02fa9384ac
commit 898f4a6740
11 changed files with 51 additions and 24 deletions

View file

@ -33,7 +33,7 @@ FlatMapType.prototype = $.extend(new DynMapType(), {
if(zoom < extrazoom) {
var scale = 1 << (extrazoom-zoom);
var zprefix = "zzzzzzzzzzzz".substring(0, extrazoom-zoom);
if(this.dynmap.world.bigworld)
if(this.dynmap.map.mapTypes[this.dynmap.map.mapTypeId].bigmap)
tileName = this.prefix + dnprefix + '_128/' + ((scale*coord.x) >> 5) + '_' + ((scale*coord.y) >> 5) +
'/' + zprefix + "_" + (scale*coord.x) + '_' + (scale*coord.y) + '.png';
else
@ -41,7 +41,7 @@ FlatMapType.prototype = $.extend(new DynMapType(), {
imgSize = 128;
}
else {
if(this.dynmap.world.bigworld)
if(this.dynmap.map.mapTypes[this.dynmap.map.mapTypeId].bigmap)
tileName = this.prefix + dnprefix + '_128/' + (coord.x >> 5) + '_' + (coord.y >> 5) +
'/' + coord.x + '_' + coord.y + '.png';
else