From c0433ce8839f8e3a2f51602329928e91d4006567 Mon Sep 17 00:00:00 2001 From: Edo Date: Tue, 23 Aug 2022 00:05:54 +0200 Subject: [PATCH] [LargeLocal] Remove incorrect macro (#453) --- src/Game/Engine/LargeLocal.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Game/Engine/LargeLocal.cpp b/src/Game/Engine/LargeLocal.cpp index 3ded8eb6..638584c5 100644 --- a/src/Game/Engine/LargeLocal.cpp +++ b/src/Game/Engine/LargeLocal.cpp @@ -3,7 +3,6 @@ namespace Game::Engine { - #define PAGE_SIZE 128 #define CanUseServerLargeLocal() (SV_GetServerThreadOwnsGame() ? Sys_IsServerThread() : Sys_IsRenderThread()) LargeLocal::LargeLocal(int sizeParam) @@ -11,7 +10,7 @@ namespace Game::Engine assert(sizeParam); assert(Sys_IsMainThread() || CanUseServerLargeLocal()); - sizeParam = ((sizeParam + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1)); + sizeParam = ((sizeParam + (128 - 1)) & ~(128 - 1)); if (Sys_IsMainThread()) { @@ -78,7 +77,7 @@ namespace Game::Engine { assert(Sys_IsMainThread() || CanUseServerLargeLocal()); assert(g_largeLocalBuf); - assert(!(size & (PAGE_SIZE - 1))); + assert(!(size & 127)); if (Sys_IsMainThread()) {