aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerregion.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:27 -0500
committerJacek Antonelli2008-08-15 23:45:27 -0500
commita8a62201ba762e98dff92cf49033e577fc34d8d4 (patch)
tree11f8513c5cdc222f2fac0c93eb724c089803c200 /linden/indra/newview/llviewerregion.cpp
parentSecond Life viewer sources 1.18.6.4-RC (diff)
downloadmeta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.zip
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.gz
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.bz2
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.xz
Second Life viewer sources 1.19.0.0
Diffstat (limited to 'linden/indra/newview/llviewerregion.cpp')
-rw-r--r--linden/indra/newview/llviewerregion.cpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/linden/indra/newview/llviewerregion.cpp b/linden/indra/newview/llviewerregion.cpp
index 54e7db7..f8b8f76 100644
--- a/linden/indra/newview/llviewerregion.cpp
+++ b/linden/indra/newview/llviewerregion.cpp
@@ -12,12 +12,12 @@
12 * ("GPL"), unless you have obtained a separate licensing agreement 12 * ("GPL"), unless you have obtained a separate licensing agreement
13 * ("Other License"), formally executed by you and Linden Lab. Terms of 13 * ("Other License"), formally executed by you and Linden Lab. Terms of
14 * the GPL can be found in doc/GPL-license.txt in this distribution, or 14 * the GPL can be found in doc/GPL-license.txt in this distribution, or
15 * online at http://secondlife.com/developers/opensource/gplv2 15 * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
16 * 16 *
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlife.com/developers/opensource/flossexception 20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 21 *
22 * By copying, modifying or distributing this software, you acknowledge 22 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 23 * that you have read and understood your obligations described above,
@@ -50,6 +50,7 @@
50#include "lldir.h" 50#include "lldir.h"
51#include "lleventpoll.h" 51#include "lleventpoll.h"
52#include "llfloatergodtools.h" 52#include "llfloatergodtools.h"
53#include "llfloaterreleasemsg.h"
53#include "llfloaterreporter.h" 54#include "llfloaterreporter.h"
54#include "llfloaterregioninfo.h" 55#include "llfloaterregioninfo.h"
55#include "llhttpnode.h" 56#include "llhttpnode.h"
@@ -366,6 +367,11 @@ F32 LLViewerRegion::getWaterHeight() const
366 return mLandp->getWaterHeight(); 367 return mLandp->getWaterHeight();
367} 368}
368 369
370BOOL LLViewerRegion::isVoiceEnabled() const
371{
372 return (getRegionFlags() & REGION_FLAGS_ALLOW_VOICE);
373}
374
369void LLViewerRegion::setRegionFlags(U32 flags) 375void LLViewerRegion::setRegionFlags(U32 flags)
370{ 376{
371 mRegionFlags = flags; 377 mRegionFlags = flags;
@@ -841,6 +847,7 @@ public:
841 const LLSD& context, 847 const LLSD& context,
842 const LLSD& input) const 848 const LLSD& input) const
843 { 849 {
850 if(!gWorldp) return;
844 LLHost host(input["sender"].asString()); 851 LLHost host(input["sender"].asString());
845 LLViewerRegion* region = gWorldp->getRegion(host); 852 LLViewerRegion* region = gWorldp->getRegion(host);
846 if( !region ) 853 if( !region )
@@ -1302,6 +1309,13 @@ public:
1302 mRegion->setCapability(iter->first, iter->second); 1309 mRegion->setCapability(iter->first, iter->second);
1303 llinfos << "BaseCapabilitiesComplete::result got capability for " 1310 llinfos << "BaseCapabilitiesComplete::result got capability for "
1304 << iter->first << llendl; 1311 << iter->first << llendl;
1312
1313 /* HACK we're waiting for the ServerReleaseNotes */
1314 if ((iter->first == "ServerReleaseNotes") && (LLFloaterReleaseMsg::sDisplayMessage))
1315 {
1316 LLFloaterReleaseMsg::show();
1317 LLFloaterReleaseMsg::sDisplayMessage = false;
1318 }
1305 } 1319 }
1306 1320
1307 if (STATE_SEED_GRANTED_WAIT == LLStartUp::getStartupState()) 1321 if (STATE_SEED_GRANTED_WAIT == LLStartUp::getStartupState())
@@ -1340,6 +1354,7 @@ void LLViewerRegion::setSeedCapability(const std::string& url)
1340 capabilityNames.append("CopyInventoryFromNotecard"); 1354 capabilityNames.append("CopyInventoryFromNotecard");
1341 capabilityNames.append("DispatchRegionInfo"); 1355 capabilityNames.append("DispatchRegionInfo");
1342 capabilityNames.append("EventQueueGet"); 1356 capabilityNames.append("EventQueueGet");
1357 capabilityNames.append("GroupProposalBallot");
1343 capabilityNames.append("MapLayer"); 1358 capabilityNames.append("MapLayer");
1344 capabilityNames.append("MapLayerGod"); 1359 capabilityNames.append("MapLayerGod");
1345 capabilityNames.append("NewFileAgentInventory"); 1360 capabilityNames.append("NewFileAgentInventory");
@@ -1354,6 +1369,7 @@ void LLViewerRegion::setSeedCapability(const std::string& url)
1354 capabilityNames.append("SendUserReport"); 1369 capabilityNames.append("SendUserReport");
1355 capabilityNames.append("SendUserReportWithScreenshot"); 1370 capabilityNames.append("SendUserReportWithScreenshot");
1356 capabilityNames.append("ServerReleaseNotes"); 1371 capabilityNames.append("ServerReleaseNotes");
1372 capabilityNames.append("StartGroupProposal");
1357 capabilityNames.append("UpdateGestureAgentInventory"); 1373 capabilityNames.append("UpdateGestureAgentInventory");
1358 capabilityNames.append("UpdateNotecardAgentInventory"); 1374 capabilityNames.append("UpdateNotecardAgentInventory");
1359 capabilityNames.append("UpdateScriptAgentInventory"); 1375 capabilityNames.append("UpdateScriptAgentInventory");