aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llagent.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llagent.h')
-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 3a39448..f1cad9c 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**);
@@ -781,6 +787,7 @@ public:
781 EDoubleTapRunMode mDoubleTapRunMode; 787 EDoubleTapRunMode mDoubleTapRunMode;
782 788
783private: 789private:
790 bool mbTeleportKeepsLookAt;
784 bool mbAlwaysRun; // should the avatar run by default rather than walk 791 bool mbAlwaysRun; // should the avatar run by default rather than walk
785 bool mbRunning; // is the avatar trying to run right now 792 bool mbRunning; // is the avatar trying to run right now
786 793