mirror of
https://github.com/SWG-Source/client-tools.git
synced 2026-01-15 22:04:32 -05:00
Update ClientInteriorLayoutManager.cpp
This commit is contained in:
@@ -28,6 +28,8 @@ namespace ClientInteriorLayoutManagerNamespace
|
||||
bool ms_disableLazyInteriorLayoutCreation;
|
||||
bool ms_logApplyInteriorLayoutCreates;
|
||||
|
||||
bool ms_disableInteriorLayouts;
|
||||
|
||||
void remove();
|
||||
}
|
||||
|
||||
@@ -41,6 +43,8 @@ void ClientInteriorLayoutManager::install(bool const disableLazyInteriorLayoutCr
|
||||
|
||||
ms_disableLazyInteriorLayoutCreation = ConfigFile::getKeyBool("ClientGame/ClientInteriorLayoutManager", "disableLazyInteriorLayoutCreation", disableLazyInteriorLayoutCreation);
|
||||
|
||||
ms_disableInteriorLayouts = !ConfigFile::getKeyBool("ClientGame", "useInteriorLayoutFiles", true);
|
||||
|
||||
DebugFlags::registerFlag(ms_logApplyInteriorLayoutCreates, "ClientGame/ClientInteriorLayoutManager", "logApplyInteriorLayoutCreates");
|
||||
|
||||
ExitChain::add(remove, "ClientInteriorLayoutManagerNamespace::remove");
|
||||
@@ -57,7 +61,7 @@ void ClientInteriorLayoutManagerNamespace::remove()
|
||||
|
||||
void ClientInteriorLayoutManager::update()
|
||||
{
|
||||
if (ms_disableLazyInteriorLayoutCreation)
|
||||
if (ms_disableLazyInteriorLayoutCreation || ms_disableInteriorLayouts)
|
||||
return;
|
||||
|
||||
//-- find all visible cells
|
||||
@@ -131,7 +135,7 @@ void ClientInteriorLayoutManager::applyInteriorLayout(TangibleObject * const tan
|
||||
{
|
||||
UNREF(fileName);
|
||||
|
||||
if (!ms_disableLazyInteriorLayoutCreation)
|
||||
if (!ms_disableLazyInteriorLayoutCreation || ms_disableInteriorLayouts)
|
||||
return;
|
||||
|
||||
if (!tangibleObject)
|
||||
|
||||
Reference in New Issue
Block a user