Fixed nightday and making use of options.mapzoomin and options.mapzoomout.

This commit is contained in:
FrozenCow 2011-07-24 14:56:23 +02:00
parent ea4aa7de97
commit f0a043b41c
5 changed files with 58 additions and 52 deletions

View file

@ -53,7 +53,7 @@ var KzedMapType = DynmapTileLayer.extend({
},
calculateTileSize: function(zoom) {
var extrazoomout = this.options.dynmap.world.extrazoomout;
return (zoom <= extrazoom)
return (zoom <= extrazoomout)
? 128
: Math.pow(2, 6+zoom-extrazoomout);
}