summaryrefslogtreecommitdiff
path: root/indra/newview/llagentui.cpp
diff options
context:
space:
mode:
authorDenis Serdjuk <dserduk@productengine.com>2009-10-28 13:56:02 +0200
committerDenis Serdjuk <dserduk@productengine.com>2009-10-28 13:56:02 +0200
commit2bb9751d0aee01b8911f57150fb1e5ea258d7bb4 (patch)
treeedfa44b02ae8108643741e610836cef887bbf7b2 /indra/newview/llagentui.cpp
parentf71f8ecdf909bbeb6573870d3860b0447a64914c (diff)
EXT-1232 Implement \"You are Here\" banner for Place Profile - Parcel Characteristics
Note: \"YouAreHereDistance\" setting has been added to setting.xml --HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llagentui.cpp')
-rw-r--r--indra/newview/llagentui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llagentui.cpp b/indra/newview/llagentui.cpp
index 1a69f1d975..09f7c49f23 100644
--- a/indra/newview/llagentui.cpp
+++ b/indra/newview/llagentui.cpp
@@ -89,6 +89,11 @@ std::string LLAgentUI::buildSLURL(const bool escaped /*= true*/)
return slurl;
}
+//static
+BOOL LLAgentUI::checkAgentDistance(const LLVector3& pole, F32 radius)
+{
+ return (gAgent.getPositionAgent() - pole).length() < radius;
+}
BOOL LLAgentUI::buildLocationString(std::string& str, ELocationFormat fmt,const LLVector3& agent_pos_region)
{
LLViewerRegion* region = gAgent.getRegion();