summaryrefslogtreecommitdiff
path: root/indra/newview/llagent.cpp
diff options
context:
space:
mode:
authorAndreyL ProductEngine <alihatskiy@productengine.com>2019-10-22 17:09:37 +0300
committerAndreyL ProductEngine <alihatskiy@productengine.com>2019-10-22 17:09:37 +0300
commited6943b913bb1affc6049384fa20bcb778f41c07 (patch)
tree292b156d16556fbeb6149f2b5a3e853817061f82 /indra/newview/llagent.cpp
parent2ec0ccb628e8fa2e8affe27dde4e4dab0906b5c5 (diff)
parent33821bd599d1d9171cc93c38a2bc6c4ab6772c9a (diff)
Merged in lindenlab/viewer-release
Diffstat (limited to 'indra/newview/llagent.cpp')
-rw-r--r--indra/newview/llagent.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp
index 8b2d591da5..31b8b90518 100644
--- a/indra/newview/llagent.cpp
+++ b/indra/newview/llagent.cpp
@@ -3710,6 +3710,23 @@ BOOL LLAgent::getHomePosGlobal( LLVector3d* pos_global )
return TRUE;
}
+bool LLAgent::isInHomeRegion()
+{
+ if(!mHaveHomePosition)
+ {
+ return false;
+ }
+ if (!getRegion())
+ {
+ return false;
+ }
+ if (getRegion()->getHandle() != mHomeRegionHandle)
+ {
+ return false;
+ }
+ return true;
+}
+
void LLAgent::clearVisualParams(void *data)
{
if (isAgentAvatarValid())