From 400d78d59158efa5d463b6e81c047f54e260bc73 Mon Sep 17 00:00:00 2001 From: Uladzislau Nikalayevich Date: Sun, 9 Feb 2025 13:53:50 +0300 Subject: [PATCH] Apply rename --- Client/game_sa/CBuildingSA.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Client/game_sa/CBuildingSA.cpp b/Client/game_sa/CBuildingSA.cpp index 59f8e87f4a..09b8e96e7f 100644 --- a/Client/game_sa/CBuildingSA.cpp +++ b/Client/game_sa/CBuildingSA.cpp @@ -18,7 +18,7 @@ extern CGameSA* pGame; -static CDynamicPool> EXCLUSIVE_MATRIX_POOL{}; +static CDynamicPool> g_matrixPool{}; CBuildingSA::CBuildingSA(CBuildingSAInterface* pInterface) { @@ -72,7 +72,7 @@ void CBuildingSA::SetLod(CBuilding* pLod) void CBuildingSA::AllocateMatrix() { - auto* newMatrix = EXCLUSIVE_MATRIX_POOL.AllocateItem(); + auto* newMatrix = g_matrixPool.AllocateItem(); std::memset(newMatrix, 0, sizeof(CMatrixLinkSAInterface)); newMatrix->SetTranslateOnly(m_pInterface->Placeable.m_transform.m_translate); @@ -84,7 +84,7 @@ void CBuildingSA::ReallocateMatrix() if (!m_pInterface->HasMatrix()) return; - auto* newMatrix = EXCLUSIVE_MATRIX_POOL.AllocateItem(); + auto* newMatrix = g_matrixPool.AllocateItem(); std::memcpy(newMatrix, m_pInterface->Placeable.matrix, sizeof(CMatrixLinkSAInterface)); newMatrix->m_pOwner = nullptr; newMatrix->m_pPrev = nullptr; @@ -104,7 +104,7 @@ void CBuildingSA::RemoveAllocatedMatrix() if (pMatrix->m_pOwner || (pMatrix->m_pNext && pMatrix->m_pPrev)) return; - EXCLUSIVE_MATRIX_POOL.RemoveItem(reinterpret_cast(m_pInterface->Placeable.matrix)); - EXCLUSIVE_MATRIX_POOL.SetCapacity(0); + g_matrixPool.RemoveItem(reinterpret_cast(m_pInterface->Placeable.matrix)); + g_matrixPool.SetCapacity(0); m_pInterface->Placeable.matrix = nullptr; }