aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llagent.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-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)