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:
parent
02fa9384ac
commit
898f4a6740
11 changed files with 51 additions and 24 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue