From 2bb9751d0aee01b8911f57150fb1e5ea258d7bb4 Mon Sep 17 00:00:00 2001 From: Denis Serdjuk Date: Wed, 28 Oct 2009 13:56:02 +0200 Subject: 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 --- indra/newview/llagentui.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'indra/newview/llagentui.cpp') 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(); -- cgit v1.2.3