LLViewerRegion WIP: Sync indra/llmessage/llregionflags.h with V3
It seems a few flags disappeared; adjusted the code accordingly. Should do the same as V3 now.
This commit is contained in:
@@ -107,7 +107,6 @@ LLMap< EReportType, LLFloaterReporter* > gReporterInstances;
|
||||
// keeps track of where email is going to - global to avoid a pile
|
||||
// of static/non-static access outside my control
|
||||
namespace {
|
||||
static BOOL gEmailToEstateOwner = FALSE;
|
||||
static BOOL gDialogVisible = FALSE;
|
||||
}
|
||||
|
||||
@@ -227,16 +226,10 @@ void LLFloaterReporter::processRegionInfo(LLMessageSystem* msg)
|
||||
{
|
||||
U32 region_flags;
|
||||
msg->getU32("RegionInfo", "RegionFlags", region_flags);
|
||||
gEmailToEstateOwner = ( region_flags & REGION_FLAGS_ABUSE_EMAIL_TO_ESTATE_OWNER );
|
||||
|
||||
if ( gDialogVisible )
|
||||
{
|
||||
if ( gEmailToEstateOwner )
|
||||
{
|
||||
LLNotificationsUtil::add("HelpReportAbuseEmailEO");
|
||||
}
|
||||
else
|
||||
LLNotificationsUtil::add("HelpReportAbuseEmailLL");
|
||||
LLNotificationsUtil::add("HelpReportAbuseEmailLL");
|
||||
};
|
||||
}
|
||||
|
||||
@@ -264,18 +257,7 @@ LLFloaterReporter::~LLFloaterReporter()
|
||||
// virtual
|
||||
void LLFloaterReporter::draw()
|
||||
{
|
||||
// this is set by a static callback sometime after the dialog is created.
|
||||
// Only disable screenshot for abuse reports to estate owners - bug reports always
|
||||
// allow screenshots to be taken.
|
||||
if ( gEmailToEstateOwner && ( mReportType != BUG_REPORT ) )
|
||||
{
|
||||
childSetValue("screen_check", FALSE );
|
||||
childSetEnabled("screen_check", FALSE );
|
||||
}
|
||||
else
|
||||
{
|
||||
childSetEnabled("screen_check", TRUE );
|
||||
}
|
||||
childSetEnabled("screen_check", TRUE );
|
||||
|
||||
LLFloater::draw();
|
||||
}
|
||||
@@ -805,17 +787,7 @@ LLSD LLFloaterReporter::gatherReport()
|
||||
LLUUID screenshot_id = LLUUID::null;
|
||||
if (childGetValue("screen_check"))
|
||||
{
|
||||
if ( mReportType != BUG_REPORT )
|
||||
{
|
||||
if ( gEmailToEstateOwner == FALSE )
|
||||
{
|
||||
screenshot_id = childGetValue("screenshot");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
screenshot_id = childGetValue("screenshot");
|
||||
};
|
||||
screenshot_id = childGetValue("screenshot");
|
||||
};
|
||||
|
||||
LLSD report = LLSD::emptyMap();
|
||||
|
||||
@@ -773,10 +773,12 @@ void LLWorldMapView::drawTiles(S32 width, S32 height) {
|
||||
// 1. Tiles are zoomed out small enough, or
|
||||
// 2. Sim's texture has not been loaded yet
|
||||
F32 map_scale_cutoff = SIM_MAP_SCALE;
|
||||
#if 0 // This is always false, as REGION_FLAGS_NULL_LAYER doesn't exist anymore
|
||||
if ((info->getRegionFlags() & REGION_FLAGS_NULL_LAYER) > 0)
|
||||
{
|
||||
map_scale_cutoff = SIM_NULL_MAP_SCALE;
|
||||
}
|
||||
#endif
|
||||
|
||||
bool sim_visible =
|
||||
(sMapScale >= map_scale_cutoff) &&
|
||||
@@ -910,7 +912,7 @@ void LLWorldMapView::drawTiles(S32 width, S32 height) {
|
||||
gGL.end();
|
||||
}
|
||||
|
||||
if ((info->getRegionFlags() & REGION_FLAGS_NULL_LAYER) == 0)
|
||||
if (true /*V3: REGION_FLAGS_NULL_LAYER doesn't exist... (info->getRegionFlags() & REGION_FLAGS_NULL_LAYER) == 0*/)
|
||||
{
|
||||
// draw an alpha of 1 where the sims are visible (except NULL sims)
|
||||
gGL.flush();
|
||||
|
||||
Reference in New Issue
Block a user