aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llagent.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-09-06 20:53:19 -0700
committerMcCabe Maxsted2009-09-06 20:53:19 -0700
commitad45708178b7e014faad753fab00cd9cd58df5a7 (patch)
tree2c97e50254a8a95deedae0a556b4972954e1c81c /linden/indra/newview/llagent.cpp
parentPorted sit anywhere feature from Emerald viewer (diff)
downloadmeta-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.cpp30
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//
234BOOL LLAgent::sDebugDisplayTarget = FALSE; 234BOOL LLAgent::sDebugDisplayTarget = FALSE;
235BOOL LLAgent::sPhantom = FALSE;
235 236
236const F32 LLAgent::TYPING_TIMEOUT_SECS = 5.f; 237const 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//-----------------------------------------------------------------------------
841void LLAgent::togglePhantom()
842{
843 BOOL phan = !(sPhantom);
844
845 setPhantom( phan );
846}
847
848
849//-----------------------------------------------------------------------------
850// setPhantom() lgg
851//-----------------------------------------------------------------------------
852void LLAgent::setPhantom(BOOL phantom)
853{
854 sPhantom = phantom;
855}
856
857
858//-----------------------------------------------------------------------------
859// getPhantom() lgg
860//-----------------------------------------------------------------------------
861BOOL LLAgent::getPhantom()
862{
863 return sPhantom;
864}
865
866
867//-----------------------------------------------------------------------------
838// setRegion() 868// setRegion()
839//----------------------------------------------------------------------------- 869//-----------------------------------------------------------------------------
840void LLAgent::setRegion(LLViewerRegion *regionp) 870void LLAgent::setRegion(LLViewerRegion *regionp)