Mercurial > hg > batmud > gmap2
changeset 303:9ca251cc5d7c gmap2
Coordinates local to a continent start always at origo of 1,1.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 28 Jan 2017 23:52:22 +0200 |
parents | 91e6497dffa2 |
children | 2388ebb0567b |
files | map.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/map.js Mon Jan 09 14:05:40 2017 +0200 +++ b/map.js Sat Jan 28 23:52:22 2017 +0200 @@ -187,7 +187,7 @@ "Global X: <span class=\"coord\">"+ tx +"</span>, Y: <span class=\"coord\">"+ ty +"</span>, "+ "Continent: <span class=\"continent\">"+ cont +"</span> "; - if (cx >= 0 && cy >= 0) + if (cx > 0 && cy > 0) str += "[ Local X: <span class=\"coord\">"+ cx +"</span>, Y: <span class=\"coord\">"+ cy +"</span> ]"; document.getElementById("footercontent").innerHTML = str;