diff options
author | McCabe Maxsted | 2010-09-07 00:46:37 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-09-07 00:46:37 -0700 |
commit | 43cd306e901c444b997614c8e3d16ef79c3aa044 (patch) | |
tree | 8c07a54e874a137ba936e4dca2b8330f991a4446 /linden/indra/newview/llagent.cpp | |
parent | Use solid circles instead of asterisks for password fields. (diff) | |
download | meta-impy-43cd306e901c444b997614c8e3d16ef79c3aa044.zip meta-impy-43cd306e901c444b997614c8e3d16ef79c3aa044.tar.gz meta-impy-43cd306e901c444b997614c8e3d16ef79c3aa044.tar.bz2 meta-impy-43cd306e901c444b997614c8e3d16ef79c3aa044.tar.xz |
Applied #472: teleport history from Emerald, patch by Ansariel Hiler, feature originally by Zi Ree
Diffstat (limited to 'linden/indra/newview/llagent.cpp')
-rw-r--r-- | linden/indra/newview/llagent.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/linden/indra/newview/llagent.cpp b/linden/indra/newview/llagent.cpp index 38e1c0f..03d5c65 100644 --- a/linden/indra/newview/llagent.cpp +++ b/linden/indra/newview/llagent.cpp | |||
@@ -6102,6 +6102,10 @@ void LLAgent::teleportRequest( | |||
6102 | const LLVector3& pos_local) | 6102 | const LLVector3& pos_local) |
6103 | { | 6103 | { |
6104 | LLViewerRegion* regionp = getRegion(); | 6104 | LLViewerRegion* regionp = getRegion(); |
6105 | |||
6106 | // Set last region data for teleport history | ||
6107 | gAgent.setLastRegionData(regionp->getName(),gAgent.getPositionAgent()); | ||
6108 | |||
6105 | if(regionp && teleportCore()) | 6109 | if(regionp && teleportCore()) |
6106 | { | 6110 | { |
6107 | llinfos << "TeleportRequest: '" << region_handle << "':" << pos_local | 6111 | llinfos << "TeleportRequest: '" << region_handle << "':" << pos_local |
@@ -6133,6 +6137,10 @@ void LLAgent::teleportViaLandmark(const LLUUID& landmark_asset_id) | |||
6133 | // [/RLVa:KB] | 6137 | // [/RLVa:KB] |
6134 | 6138 | ||
6135 | LLViewerRegion *regionp = getRegion(); | 6139 | LLViewerRegion *regionp = getRegion(); |
6140 | |||
6141 | // Set last region data for teleport history | ||
6142 | gAgent.setLastRegionData(regionp->getName(),gAgent.getPositionAgent()); | ||
6143 | |||
6136 | if(regionp && teleportCore()) | 6144 | if(regionp && teleportCore()) |
6137 | { | 6145 | { |
6138 | LLMessageSystem* msg = gMessageSystem; | 6146 | LLMessageSystem* msg = gMessageSystem; |
@@ -6148,6 +6156,10 @@ void LLAgent::teleportViaLandmark(const LLUUID& landmark_asset_id) | |||
6148 | void LLAgent::teleportViaLure(const LLUUID& lure_id, BOOL godlike) | 6156 | void LLAgent::teleportViaLure(const LLUUID& lure_id, BOOL godlike) |
6149 | { | 6157 | { |
6150 | LLViewerRegion* regionp = getRegion(); | 6158 | LLViewerRegion* regionp = getRegion(); |
6159 | |||
6160 | // Set last region data for teleport history | ||
6161 | gAgent.setLastRegionData(regionp->getName(),gAgent.getPositionAgent()); | ||
6162 | |||
6151 | if(regionp && teleportCore()) | 6163 | if(regionp && teleportCore()) |
6152 | { | 6164 | { |
6153 | U32 teleport_flags = 0x0; | 6165 | U32 teleport_flags = 0x0; |
@@ -8082,4 +8094,21 @@ void LLAgent::parseTeleportMessages(const std::string& xml_filename) | |||
8082 | }//end for (all message sets in xml file) | 8094 | }//end for (all message sets in xml file) |
8083 | } | 8095 | } |
8084 | 8096 | ||
8097 | void LLAgent::setLastRegionData(std::string regionName, LLVector3 agentCoords) | ||
8098 | { | ||
8099 | mLastRegion = regionName; | ||
8100 | mLastCoordinates = agentCoords; | ||
8101 | } | ||
8102 | |||
8103 | std::string LLAgent::getLastRegion() | ||
8104 | { | ||
8105 | return mLastRegion; | ||
8106 | } | ||
8107 | |||
8108 | LLVector3 LLAgent::getLastCoords() | ||
8109 | { | ||
8110 | return mLastCoordinates; | ||
8111 | } | ||
8112 | |||
8113 | |||
8085 | // EOF | 8114 | // EOF |