diff options
author | Jacek Antonelli | 2008-08-15 23:45:19 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:19 -0500 |
commit | b235c59d60472f818a9142c0886b95a0ff4191d7 (patch) | |
tree | d323c55587584b19cc43a03f58a178823f12d3cd /linden/indra/newview/llworld.cpp | |
parent | Second Life viewer sources 1.18.5.3 (diff) | |
download | meta-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 'linden/indra/newview/llworld.cpp')
-rw-r--r-- | linden/indra/newview/llworld.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/newview/llworld.cpp b/linden/indra/newview/llworld.cpp index dd3223c..e761235 100644 --- a/linden/indra/newview/llworld.cpp +++ b/linden/indra/newview/llworld.cpp | |||
@@ -56,7 +56,7 @@ | |||
56 | #include "llvowater.h" | 56 | #include "llvowater.h" |
57 | #include "message.h" | 57 | #include "message.h" |
58 | #include "pipeline.h" | 58 | #include "pipeline.h" |
59 | #include "viewer.h" // for do_disconnect() | 59 | #include "llappviewer.h" // for do_disconnect() |
60 | 60 | ||
61 | // | 61 | // |
62 | // Globals | 62 | // Globals |
@@ -248,7 +248,7 @@ void LLWorld::removeRegion(const LLHost &host) | |||
248 | llwarns << "gFrameTimeSeconds " << gFrameTimeSeconds << llendl; | 248 | llwarns << "gFrameTimeSeconds " << gFrameTimeSeconds << llendl; |
249 | 249 | ||
250 | llwarns << "Disabling region " << regionp->getName() << " that agent is in!" << llendl; | 250 | llwarns << "Disabling region " << regionp->getName() << " that agent is in!" << llendl; |
251 | do_disconnect("You have been disconnected from the region you were in."); | 251 | LLAppViewer::instance()->forceDisconnect("You have been disconnected from the region you were in."); |
252 | return; | 252 | return; |
253 | } | 253 | } |
254 | 254 | ||
@@ -972,16 +972,16 @@ void LLWorld::requestCacheMisses() | |||
972 | } | 972 | } |
973 | } | 973 | } |
974 | 974 | ||
975 | LLString LLWorld::getInfoString() | 975 | void LLWorld::getInfo(LLSD& info) |
976 | { | 976 | { |
977 | LLString info_string("World Info:\n"); | 977 | LLSD region_info; |
978 | for (region_list_t::iterator iter = mRegionList.begin(); | 978 | for (region_list_t::iterator iter = mRegionList.begin(); |
979 | iter != mRegionList.end(); ++iter) | 979 | iter != mRegionList.end(); ++iter) |
980 | { | 980 | { |
981 | LLViewerRegion* regionp = *iter; | 981 | LLViewerRegion* regionp = *iter; |
982 | info_string += regionp->getInfoString(); | 982 | regionp->getInfo(region_info); |
983 | info["World"].append(region_info); | ||
983 | } | 984 | } |
984 | return info_string; | ||
985 | } | 985 | } |
986 | 986 | ||
987 | void LLWorld::disconnectRegions() | 987 | void LLWorld::disconnectRegions() |