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:
Aleric Inglewood
2012-02-18 02:15:31 +01:00
parent f381b0c2dd
commit 787e03e821
3 changed files with 23 additions and 69 deletions

View File

@@ -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();