aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerregion.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:19 -0500
committerJacek Antonelli2008-08-15 23:45:19 -0500
commitb235c59d60472f818a9142c0886b95a0ff4191d7 (patch)
treed323c55587584b19cc43a03f58a178823f12d3cd /linden/indra/newview/llviewerregion.cpp
parentSecond Life viewer sources 1.18.5.3 (diff)
downloadmeta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.zip
meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.gz
meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.bz2
meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.xz
Second Life viewer sources 1.18.6.0-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewerregion.cpp23
1 files changed, 5 insertions, 18 deletions
diff --git a/linden/indra/newview/llviewerregion.cpp b/linden/indra/newview/llviewerregion.cpp
index 643df1e..0022212 100644
--- a/linden/indra/newview/llviewerregion.cpp
+++ b/linden/indra/newview/llviewerregion.cpp
@@ -63,7 +63,6 @@
63#include "llvocache.h" 63#include "llvocache.h"
64#include "llvoclouds.h" 64#include "llvoclouds.h"
65#include "llworld.h" 65#include "llworld.h"
66#include "viewer.h"
67 66
68// Viewer object cache version, change if object update 67// Viewer object cache version, change if object update
69// format changes. JC 68// format changes. JC
@@ -969,28 +968,16 @@ void LLViewerRegion::updateCoarseLocations(LLMessageSystem* msg)
969 } 968 }
970} 969}
971 970
972LLString LLViewerRegion::getInfoString() 971void LLViewerRegion::getInfo(LLSD& info)
973{ 972{
974 char tmp_buf[256]; /* Flawfinder: ignore */ 973 info["Region"]["Host"] = getHost().getIPandPort();
975 LLString info; 974 info["Region"]["Name"] = getName();
976
977 info = "Region: ";
978 getHost().getString(tmp_buf, 256);
979 info += tmp_buf;
980 info += ":";
981 info += getName();
982 info += "\n";
983
984 U32 x, y; 975 U32 x, y;
985 from_region_handle(getHandle(), &x, &y); 976 from_region_handle(getHandle(), &x, &y);
986 snprintf(tmp_buf, sizeof(tmp_buf), "%d:%d", x, y); /* Flawfinder: ignore */ 977 info["Region"]["Handle"]["x"] = (LLSD::Integer)x;
987 info += "Handle:"; 978 info["Region"]["Handle"]["y"] = (LLSD::Integer)y;
988 info += tmp_buf;
989 info += "\n";
990 return info;
991} 979}
992 980
993
994void LLViewerRegion::cacheFullUpdate(LLViewerObject* objectp, LLDataPackerBinaryBuffer &dp) 981void LLViewerRegion::cacheFullUpdate(LLViewerObject* objectp, LLDataPackerBinaryBuffer &dp)
995{ 982{
996 U32 local_id = objectp->getLocalID(); 983 U32 local_id = objectp->getLocalID();