From cfeb51fff66956c5d5dae380548d11f0562df73a Mon Sep 17 00:00:00 2001 From: Vaqtincha <51029683+Vaqtincha@users.noreply.github.com> Date: Tue, 10 Aug 2021 10:26:16 +0500 Subject: [PATCH] fix conflict interfaces vgui.dll & swds.dll (fix listenserver crash) (#206) --- reapi/src/mods/mod_rehlds_api.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reapi/src/mods/mod_rehlds_api.cpp b/reapi/src/mods/mod_rehlds_api.cpp index 6d96be9..7dedb30 100644 --- a/reapi/src/mods/mod_rehlds_api.cpp +++ b/reapi/src/mods/mod_rehlds_api.cpp @@ -8,6 +8,11 @@ IRehldsServerStatic* g_RehldsSvs; bool RehldsApi_Init() { + if (!IS_DEDICATED_SERVER()) + { + return false; + } + #ifdef WIN32 CSysModule* engineModule = Sys_LoadModule("swds.dll"); #else