mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-11 06:24:30 +00:00
Merge branch 'sohl1.2' into aomdc
This commit is contained in:
commit
097cf2efa8
@ -55,8 +55,8 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT 64BIT)
|
|||||||
if(MSVC)
|
if(MSVC)
|
||||||
error("UNDONE: set 32 build flags")
|
error("UNDONE: set 32 build flags")
|
||||||
else()
|
else()
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_C_FLAGS}")
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -m32")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -m32")
|
||||||
endif()
|
endif()
|
||||||
set(CMAKE_SIZEOF_VOID_P 4)
|
set(CMAKE_SIZEOF_VOID_P 4)
|
||||||
|
@ -31,6 +31,7 @@ add_definitions(-DCLIENT_WEAPONS -DCLIENT_DLL)
|
|||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
add_compile_options(-fno-exceptions) # GCC/Clang flag
|
add_compile_options(-fno-exceptions) # GCC/Clang flag
|
||||||
add_compile_options(-Wno-write-strings) # GCC/Clang flag
|
add_compile_options(-Wno-write-strings) # GCC/Clang flag
|
||||||
|
add_compile_options(-fvisibility=hidden) # GCC/Clang flag
|
||||||
add_definitions(-D_LINUX -DLINUX) # It seems enough for all non-Win32 systems
|
add_definitions(-D_LINUX -DLINUX) # It seems enough for all non-Win32 systems
|
||||||
add_definitions(-Dstricmp=strcasecmp -Dstrnicmp=strncasecmp)
|
add_definitions(-Dstricmp=strcasecmp -Dstrnicmp=strncasecmp)
|
||||||
if(NOT MINGW)
|
if(NOT MINGW)
|
||||||
|
@ -30,6 +30,7 @@ add_definitions(-DCLIENT_WEAPONS)
|
|||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
add_compile_options(-fno-exceptions) # GCC/Clang flag
|
add_compile_options(-fno-exceptions) # GCC/Clang flag
|
||||||
add_compile_options(-Wno-invalid-offsetof) # GCC/Clang flag
|
add_compile_options(-Wno-invalid-offsetof) # GCC/Clang flag
|
||||||
|
add_compile_options(-fvisibility=hidden) # GCC/Clang flag
|
||||||
add_definitions(-D_LINUX) # It seems enough for all non-Win32 systems
|
add_definitions(-D_LINUX) # It seems enough for all non-Win32 systems
|
||||||
add_definitions(-Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf )
|
add_definitions(-Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf )
|
||||||
else()
|
else()
|
||||||
|
@ -164,6 +164,16 @@ void CBasePlatTrain::KeyValue( KeyValueData *pkvd )
|
|||||||
m_bStopSnd = atoi( pkvd->szValue );
|
m_bStopSnd = atoi( pkvd->szValue );
|
||||||
pkvd->fHandled = TRUE;
|
pkvd->fHandled = TRUE;
|
||||||
}
|
}
|
||||||
|
else if( FStrEq( pkvd->szKeyName, "custommovesnd" ) )
|
||||||
|
{
|
||||||
|
pev->noise = ALLOC_STRING( pkvd->szValue );
|
||||||
|
pkvd->fHandled = TRUE;
|
||||||
|
}
|
||||||
|
else if( FStrEq( pkvd->szKeyName, "customstopsnd" ) )
|
||||||
|
{
|
||||||
|
pev->noise1 = ALLOC_STRING(pkvd->szValue);
|
||||||
|
pkvd->fHandled = TRUE;
|
||||||
|
}
|
||||||
else if( FStrEq( pkvd->szKeyName, "volume" ) )
|
else if( FStrEq( pkvd->szKeyName, "volume" ) )
|
||||||
{
|
{
|
||||||
m_volume = atof( pkvd->szValue );
|
m_volume = atof( pkvd->szValue );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user