diff options
Diffstat (limited to '')
-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() |