Merge viewer-benefits
Replace MAX_AGENT_ATTACHMENTS with sim based response Replace max groups with benefits based response Upload costs are now handled by sim response Removed no-longer-needed lleconomy files and classes Removed dead fields from hippolimits and hippogridmanager Also removed lame LL code that is redundant and silly On non SL grids, when values are not provided for benefits, they will be set to the values granting maximum liberty. Old standardized responses still work when benefits aren't implemented.
This commit is contained in:
@@ -28,29 +28,8 @@ void HippoLimits::setLimits()
|
||||
}
|
||||
}
|
||||
|
||||
namespace
|
||||
{
|
||||
// gMaxAgentGroups is now sent by login.cgi, which
|
||||
// looks it up from globals.xml.
|
||||
//
|
||||
// For now we need an old default value however,
|
||||
// so the viewer can be deployed ahead of login.cgi.
|
||||
//
|
||||
constexpr S32 DEFAULT_MAX_AGENT_GROUPS = 60;
|
||||
}
|
||||
|
||||
void HippoLimits::setMaxAgentGroups()
|
||||
{
|
||||
//KC: new server defined max groups
|
||||
if (auto grid = gHippoGridManager->getConnectedGrid())
|
||||
mMaxAgentGroups = grid->getMaxAgentGroups();
|
||||
if (mMaxAgentGroups <= 0)
|
||||
mMaxAgentGroups = DEFAULT_MAX_AGENT_GROUPS;
|
||||
}
|
||||
|
||||
void HippoLimits::setOpenSimLimits()
|
||||
{
|
||||
setMaxAgentGroups();
|
||||
mMaxPrimScale = 8192.0f;
|
||||
mMaxHeight = 10000.0f;
|
||||
mMinPrimScale = 0.001f;
|
||||
@@ -67,7 +46,6 @@ void HippoLimits::setOpenSimLimits()
|
||||
|
||||
void HippoLimits::setWhiteCoreLimits()
|
||||
{
|
||||
setMaxAgentGroups();
|
||||
mMaxPrimScale = 8192.0f;
|
||||
mMinPrimScale = 0.001f;
|
||||
mMaxHeight = 10000.0f;
|
||||
@@ -78,7 +56,6 @@ void HippoLimits::setWhiteCoreLimits()
|
||||
void HippoLimits::setSecondLifeLimits()
|
||||
{
|
||||
LL_INFOS() << "Using Second Life limits." << LL_ENDL;
|
||||
setMaxAgentGroups();
|
||||
|
||||
mMinPrimScale = 0.01f;
|
||||
mMaxHeight = 4096.0f;
|
||||
|
||||
Reference in New Issue
Block a user