MCSteamed

Servers => Survival Freebuild => Discussion => : Superleclerc84 January 16, 2012, 10:16:11 PM

: Yet another smallish bug on map.smp.mcsteamed.net
: Superleclerc84 January 16, 2012, 10:16:11 PM
When zooming the map, moving the mouse cursor and checking the exact "pointed to" pixel of the mouse, I see that the displayed coordinates do their numerical value transition not at the exact "border" of the blocks, but somewhere near the "middle" of the blocks (not sure if its exactly the middle, tough -- I would have liked to be able to zoom-in at least 1 extra level lol!).

Anyway, the correct x+z coordinate is found only when pointing the mouse toward the bottom-right (according to the webpage) of the pointed block (i.e. the part of the block that in the game corresponds to its north-east section).

If pointing the mouse in the top (west) half of a block, the x coordinate is 1 too small, so instead of using a round() function, maybe using something like roof() or adding a fraction (like 0.5 -- not sure if its exactly one half of the block though) would probably work better.

If pointing the mouse in the left (south) half of a block, the z coordinate is 1 too big, so instead of using a round() function, maybe using something like floor() or substracting  a fraction (like 0.5 -- again, I'm not sure if its exactly one half of the block though) would probably work better.

Its a small detail, I know.

In any case, thanks a *LOT* to those who coded this map utility!