diff --git a/CMakeLists.txt b/CMakeLists.txt index c5654ede..9bf9961a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,7 @@ project (HLSDK-XASH3D) option(USE_VGUI "Enable VGUI1. UNDONE" OFF) option(USE_VGUI2 "Enable VGUI2. UNDONE" OFF) option(USE_VOICEMGR "Enable VOICE MANAGER." OFF) -option(BUILD_CLIENT "Build client dll" OFF) +option(BUILD_CLIENT "Build client dll" ON) option(BUILD_SERVER "Build server dll" ON) #----------------- diff --git a/cl_dll/CMakeLists.txt b/cl_dll/CMakeLists.txt index 7fffb29b..043985e6 100644 --- a/cl_dll/CMakeLists.txt +++ b/cl_dll/CMakeLists.txt @@ -25,7 +25,7 @@ project (CLDLL) set (CLDLL_LIBRARY client) -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-write-strings -DLINUX -D_LINUX -Dstricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -DCLIENT_WEAPONS -DCLIENT_DLL -w") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-write-strings -DLINUX -D_LINUX -Dstricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -DCLIENT_WEAPONS -DCLIENT_DLL -DCLIENT_FOG -w") set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}") set (CLDLL_SOURCES @@ -48,6 +48,7 @@ set (CLDLL_SOURCES hl/hl_events.cpp hl/hl_objects.cpp hl/hl_weapons.cpp + shall/clientfog.cpp ammo.cpp ammo_secondary.cpp ammohistory.cpp @@ -91,7 +92,7 @@ set (CLDLL_SOURCES input_xash3d.cpp scoreboard.cpp MOTD.cpp) -include_directories (. hl/ ../dlls ../dlls/wpn_shared ../common ../engine ../pm_shared ../game_shared ../public) +include_directories (. hl/ ../dlls ../dlls/wpn_shared ../common ../engine ../pm_shared ../game_shared ../public shall ../dlls/shall) if(USE_VOICEMGR) #set(CLDLL_SOURCES diff --git a/dlls/CMakeLists.txt b/dlls/CMakeLists.txt index 28ca5a8f..7865dfed 100644 --- a/dlls/CMakeLists.txt +++ b/dlls/CMakeLists.txt @@ -25,7 +25,7 @@ project (SVDLL) set (SVDLL_LIBRARY server) -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_LINUX -DCLIENT_WEAPONS -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -fno-exceptions -w") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_LINUX -DCLIENT_WEAPONS -DCLIENT_FOG -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -fno-exceptions -w") set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}") set (SVDLL_SOURCES @@ -127,13 +127,14 @@ set (SVDLL_SOURCES world.cpp xen.cpp zombie.cpp - halloween/shall_map_fixes.cpp + shall/fog.cpp + shall/shall_map_fixes.cpp ../pm_shared/pm_debug.c ../pm_shared/pm_math.c ../pm_shared/pm_shared.c ) -include_directories (. wpn_shared ../common ../engine ../pm_shared ../game_shared ../public halloween) +include_directories (. wpn_shared ../common ../engine ../pm_shared ../game_shared ../public shall) if(USE_VOICEMGR) set(SVDLL_SOURCES