diff --git a/src/Game/Engine/LargeLocal.cpp b/src/Game/Engine/LargeLocal.cpp index 638584c5..24445074 100644 --- a/src/Game/Engine/LargeLocal.cpp +++ b/src/Game/Engine/LargeLocal.cpp @@ -3,8 +3,6 @@ namespace Game::Engine { - #define CanUseServerLargeLocal() (SV_GetServerThreadOwnsGame() ? Sys_IsServerThread() : Sys_IsRenderThread()) - LargeLocal::LargeLocal(int sizeParam) { assert(sizeParam); @@ -89,4 +87,9 @@ namespace Game::Engine return &g_largeLocalBuf[startIndex]; } + + int CanUseServerLargeLocal() + { + return SV_GetServerThreadOwnsGame() ? Sys_IsServerThread() : Sys_IsRenderThread(); + } } diff --git a/src/Game/Engine/LargeLocal.hpp b/src/Game/Engine/LargeLocal.hpp index 12fbfe9d..b1db09e6 100644 --- a/src/Game/Engine/LargeLocal.hpp +++ b/src/Game/Engine/LargeLocal.hpp @@ -26,4 +26,6 @@ namespace Game::Engine extern void LargeLocalEndRight(int startPos); extern void* LargeLocalGetBuf(int startPos, int size); + + extern int CanUseServerLargeLocal(); }