Extend fuctionality of non-SL capability

This commit is contained in:
Lirusaito
2013-02-11 19:12:17 -05:00
parent 491af1cbf0
commit f95830fe23
13 changed files with 115 additions and 17 deletions

View File

@@ -99,7 +99,7 @@ BOOL LLPanelDirPlaces::postBuild()
childSetEnabled("Category", true);
}
childSetVisible("filter_gaming", !gAgent.getRegion()->getCapability("GamingData").empty());
childSetVisible("filter_gaming", (gAgent.getRegion()->getGamingFlags() & REGION_GAMING_PRESENT) && !(gAgent.getRegion()->getGamingFlags() & REGION_GAMING_HIDE_FIND_SIMS));
// Don't prepopulate the places list, as it hurts the database as of 2006-12-04. JC
// initialQuery();