diff options
author | McCabe Maxsted | 2009-09-06 20:53:19 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-09-06 20:53:19 -0700 |
commit | ad45708178b7e014faad753fab00cd9cd58df5a7 (patch) | |
tree | 2c97e50254a8a95deedae0a556b4972954e1c81c /linden/indra/newview/llagent.cpp | |
parent | Ported sit anywhere feature from Emerald viewer (diff) | |
download | meta-impy-ad45708178b7e014faad753fab00cd9cd58df5a7.zip meta-impy-ad45708178b7e014faad753fab00cd9cd58df5a7.tar.gz meta-impy-ad45708178b7e014faad753fab00cd9cd58df5a7.tar.bz2 meta-impy-ad45708178b7e014faad753fab00cd9cd58df5a7.tar.xz |
Ported phantom avatar option from Emerald viewer
Diffstat (limited to 'linden/indra/newview/llagent.cpp')
-rw-r--r-- | linden/indra/newview/llagent.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/linden/indra/newview/llagent.cpp b/linden/indra/newview/llagent.cpp index 5f0a875..7a70316 100644 --- a/linden/indra/newview/llagent.cpp +++ b/linden/indra/newview/llagent.cpp | |||
@@ -232,6 +232,7 @@ LLAgent gAgent; | |||
232 | // Statics | 232 | // Statics |
233 | // | 233 | // |
234 | BOOL LLAgent::sDebugDisplayTarget = FALSE; | 234 | BOOL LLAgent::sDebugDisplayTarget = FALSE; |
235 | BOOL LLAgent::sPhantom = FALSE; | ||
235 | 236 | ||
236 | const F32 LLAgent::TYPING_TIMEOUT_SECS = 5.f; | 237 | const F32 LLAgent::TYPING_TIMEOUT_SECS = 5.f; |
237 | 238 | ||
@@ -835,6 +836,35 @@ void LLAgent::toggleFlying() | |||
835 | 836 | ||
836 | 837 | ||
837 | //----------------------------------------------------------------------------- | 838 | //----------------------------------------------------------------------------- |
839 | // togglePhantom() | ||
840 | //----------------------------------------------------------------------------- | ||
841 | void LLAgent::togglePhantom() | ||
842 | { | ||
843 | BOOL phan = !(sPhantom); | ||
844 | |||
845 | setPhantom( phan ); | ||
846 | } | ||
847 | |||
848 | |||
849 | //----------------------------------------------------------------------------- | ||
850 | // setPhantom() lgg | ||
851 | //----------------------------------------------------------------------------- | ||
852 | void LLAgent::setPhantom(BOOL phantom) | ||
853 | { | ||
854 | sPhantom = phantom; | ||
855 | } | ||
856 | |||
857 | |||
858 | //----------------------------------------------------------------------------- | ||
859 | // getPhantom() lgg | ||
860 | //----------------------------------------------------------------------------- | ||
861 | BOOL LLAgent::getPhantom() | ||
862 | { | ||
863 | return sPhantom; | ||
864 | } | ||
865 | |||
866 | |||
867 | //----------------------------------------------------------------------------- | ||
838 | // setRegion() | 868 | // setRegion() |
839 | //----------------------------------------------------------------------------- | 869 | //----------------------------------------------------------------------------- |
840 | void LLAgent::setRegion(LLViewerRegion *regionp) | 870 | void LLAgent::setRegion(LLViewerRegion *regionp) |