diff options
author | Michael Pohoreski <ptolemy@lindenlab.com> | 2019-11-20 17:10:22 -0800 |
---|---|---|
committer | Michael Pohoreski <ptolemy@lindenlab.com> | 2019-11-20 17:10:22 -0800 |
commit | 4b205db468fd371dfe1bb30bb887e2ccbd7044ec (patch) | |
tree | 6d83efd5ebc0c2a462f33f1b385c5b415a93cb49 /indra/newview/llagent.cpp | |
parent | 18eb8ac90ce409ba620f6fe8ff487e6195d9c3eb (diff) | |
parent | 24920de799c8e2dd26854923c7a10fc4a551dd5d (diff) |
Merged lindenlab/viewer-eep into default
Diffstat (limited to 'indra/newview/llagent.cpp')
-rw-r--r-- | indra/newview/llagent.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index ef1d7974d6..a36e82b155 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -3723,6 +3723,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()) |