mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-04-16 14:32:31 +03:00
Add script consts: SERVER_DLL, CLIENT_DLL
This commit is contained in:
parent
c28349daaf
commit
493ff43ffe
@ -126,6 +126,15 @@ extern void RegisterWeaponScriptConstants();
|
|||||||
|
|
||||||
void RegisterSharedScriptConstants()
|
void RegisterSharedScriptConstants()
|
||||||
{
|
{
|
||||||
|
// "SERVER_DLL" is used in Source 2.
|
||||||
|
#ifdef GAME_DLL
|
||||||
|
ScriptRegisterConstantNamed( g_pScriptVM, 1, "SERVER_DLL", "" );
|
||||||
|
ScriptRegisterConstantNamed( g_pScriptVM, 0, "CLIENT_DLL", "" );
|
||||||
|
#else
|
||||||
|
ScriptRegisterConstantNamed( g_pScriptVM, 0, "SERVER_DLL", "" );
|
||||||
|
ScriptRegisterConstantNamed( g_pScriptVM, 1, "CLIENT_DLL", "" );
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// Activities
|
// Activities
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user