aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llagent.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llagent.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/linden/indra/newview/llagent.h b/linden/indra/newview/llagent.h
index d3c16c5..22851c1 100644
--- a/linden/indra/newview/llagent.h
+++ b/linden/indra/newview/llagent.h
@@ -496,7 +496,8 @@ public:
496 // go to a named location home 496 // go to a named location home
497 void teleportRequest( 497 void teleportRequest(
498 const U64& region_handle, 498 const U64& region_handle,
499 const LLVector3& pos_local); 499 const LLVector3& pos_local,
500 bool keep_look_at);
500 501
501 // teleport to a landmark 502 // teleport to a landmark
502 void teleportViaLandmark(const LLUUID& landmark_id); 503 void teleportViaLandmark(const LLUUID& landmark_id);
@@ -513,6 +514,9 @@ public:
513 // deprecated. 514 // deprecated.
514 void teleportViaLocation(const LLVector3d& pos_global); 515 void teleportViaLocation(const LLVector3d& pos_global);
515 516
517 // to a global location, preserving camera rotation
518 void teleportViaLocationLookAt(const LLVector3d& pos_global);
519
516 // cancel the teleport, may or may not be allowed by server 520 // cancel the teleport, may or may not be allowed by server
517 void teleportCancel(); 521 void teleportCancel();
518 522
@@ -521,6 +525,8 @@ public:
521 525
522 const std::string getTeleportSourceSLURL() const { return mTeleportSourceSLURL; } 526 const std::string getTeleportSourceSLURL() const { return mTeleportSourceSLURL; }
523 527
528 // whether look-at resets after this teleport
529 bool getTeleportKeepsLookAt() const { return mbTeleportKeepsLookAt; }
524 530
525 // Setting the ability for this avatar to proxy for another avatar. 531 // Setting the ability for this avatar to proxy for another avatar.
526 //static void processAddModifyAbility(LLMessageSystem* msg, void**); 532 //static void processAddModifyAbility(LLMessageSystem* msg, void**);
@@ -782,6 +788,7 @@ public:
782 EDoubleTapRunMode mDoubleTapRunMode; 788 EDoubleTapRunMode mDoubleTapRunMode;
783 789
784private: 790private:
791 bool mbTeleportKeepsLookAt;
785 bool mbAlwaysRun; // should the avatar run by default rather than walk 792 bool mbAlwaysRun; // should the avatar run by default rather than walk
786 bool mbRunning; // is the avatar trying to run right now 793 bool mbRunning; // is the avatar trying to run right now
787 794