Quantcast

Add a function to fetch coordinates safely

Author James Whitehead II <jnwhiteh@gmail.com>
Author date 2012-10-02 06:57:03
Author local date 2012-10-02 08:57:03 +0200
Committer James Whitehead II <jnwhiteh@gmail.com>
Committer date 2012-10-02 06:57:03
Committer local date 2012-10-02 08:57:03 +0200
Commit 86a44a056c8b293cf18c7329b84c3d9883c749e3
Tree 66eb1c7e45b4121813dcfed03068978223290144
Parent e9e1609077a59aafb9c6c77824dd9a6a288ef617
Add a function to fetch coordinates safely

For the coordinate feed and coordinate block. this function can be used
instead of the heavier player position function to get the current
player's coordinates. This means that depending on the current map zoom,
the 'coordinates' will display the position on that map, which is what
we'd expect.

The arrow and rest of the addon continues to function correctly.

This fixes an issue in the deeprun tram and other zones with no
coordinates.