#3932: Labels and world coordinates
-------------------------------+-------------------------------------
Reporter: NoQ | Owner: Per
Type: bug | Status: new
Priority: normal | Milestone: unspecified
Component: JavaScript Issues | Version: git/master
Keywords: | Blocked By:
Blocking: | Operating System: All/Non-Specific
-------------------------------+-------------------------------------
js_addLabel stores .x and .y "as is", but js_getObject does the conversion
before returning. So if i call something like
{{{
addLabel({x: 15, y: 15, type: POSITION}, "Last SOS beacon")
}}}
from a script, then js_getObject("Last SOS beacon") will return {x: 0, y:
0, type: POSITION}.
You never notice it with DROID type labels, for they pass through
convMax() later anyway.
It either needs to be always converted or never converted, depending on
how labels pre-placed inside the map work.
--
Ticket URL: <http://developer.wz2100.net/ticket/3932>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project