0

correct coordinates and bold the x/z labels

This commit is contained in:
Wil Gieseler
2014-02-14 16:15:02 -08:00
parent b7414e603c
commit 4c374f3f9b

View File

@@ -134,11 +134,13 @@ overviewer.views.CoordboxView = Backbone.View.extend({
latLng.lng(),
overviewer.mapView.options.currentTileSet);
var regionfileX = Math.floor(worldcoords.x / 32.0);
var regionfileZ = Math.floor(worldcoords.z / 32.0);
var regionfileX = Math.floor(Math.floor(worldcoords.x / 16.0) / 32.0);
var regionfileZ = Math.floor(Math.floor(worldcoords.z / 16.0) / 32.0);
var regionfilename = "r." + regionfileX + "." + regionfileZ + ".mca";
this.el.innerHTML = "X " + Math.round(worldcoords.x) + " Z " + Math.round(worldcoords.z) + "(" + regionfilename + ")";
this.el.innerHTML = "<strong>X</strong> " + Math.round(worldcoords.x) +
" <strong>Z</strong> " + Math.round(worldcoords.z) +
" (" + regionfilename + ")";
}
});