Browse Source

working on more exact map markers

master
poikilos 9 years ago
committed by Jacob Gustafson
parent
commit
19bd22e67f
  1. 4
      minetestmapper-numpy.py
  2. 2
      web/chunkymap.php

4
minetestmapper-numpy.py

@ -1023,9 +1023,9 @@ def draw_image(world,uid_to_color):
# worldlimits are measured in cubes of 16x16x16
pngminx = minx*16
pngmaxx = maxx*16
pngmaxx = maxx*16+16
pngminz = minz*16
pngmaxz = maxz*16
pngmaxz = maxz*16+16
pngregion=[pngminx, pngmaxx, pngminz, pngmaxz]
print("Saving to: "+ args.output)

2
web/chunkymap.php

@ -735,7 +735,7 @@ function echo_chunkymap_canvas($show_player_names_enable, $decachunks_enable, $c
}
function process_view_change() {
//NOTE: this should be exactly the same math as php uses to make sure there are the same #of tiles displayed as were loaded by php
if (current_w>current_h) {
if (ctx.canvas.width>ctx.canvas.height) { //if (current_w>current_h) {
camera_w = (800) * (1.0/zoom);
camera_h = camera_w/current_ratio;
}

Loading…
Cancel
Save