mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-11 20:11:33 +03:00
Add script consts: SERVER_DLL, CLIENT_DLL
This commit is contained in:
@@ -126,6 +126,15 @@ extern void RegisterWeaponScriptConstants();
|
||||
|
||||
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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user