aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llworldmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llworldmap.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/linden/indra/newview/llworldmap.cpp b/linden/indra/newview/llworldmap.cpp
index db7ac19..82e6b6e 100644
--- a/linden/indra/newview/llworldmap.cpp
+++ b/linden/indra/newview/llworldmap.cpp
@@ -245,20 +245,25 @@ LLSimInfo* LLWorldMap::simInfoFromName(const LLString& sim_name)
245 return sim_info; 245 return sim_info;
246} 246}
247 247
248LLString LLWorldMap::simNameFromPosGlobal(const LLVector3d& pos_global) 248bool LLWorldMap::simNameFromPosGlobal(const LLVector3d& pos_global, LLString & outSimName )
249{ 249{
250 bool gotSimName = true;
251
250 U64 handle = to_region_handle(pos_global); 252 U64 handle = to_region_handle(pos_global);
251 253
252 sim_info_map_t::iterator it = mSimInfoMap.find(handle); 254 sim_info_map_t::iterator it = mSimInfoMap.find(handle);
253 if (it != mSimInfoMap.end()) 255 if (it != mSimInfoMap.end())
254 { 256 {
255 LLSimInfo* info = (*it).second; 257 LLSimInfo* info = (*it).second;
256 return info->mName.c_str(); 258 outSimName = info->mName.c_str();
257 } 259 }
258 else 260 else
259 { 261 {
260 return "(unknown region)"; 262 gotSimName = false;
263 outSimName = "(unknown region)";
261 } 264 }
265
266 return gotSimName;
262} 267}
263 268
264void LLWorldMap::setCurrentLayer(S32 layer, bool request_layer) 269void LLWorldMap::setCurrentLayer(S32 layer, bool request_layer)