Enabling vscript_client.nut and vscript_server.nut (fixes issue with doc aliases)

This commit is contained in:
James Mitchell
2020-05-31 15:39:17 +10:00
parent 76db66f70a
commit 8316cf05ec
4 changed files with 18 additions and 17 deletions

View File

@@ -15,9 +15,7 @@
#include "sceneentity.h" // for exposing scene precache function
#include "isaverestore.h"
#include "gamerules.h"
#ifdef _WIN32
//#include "vscript_server_nut.h"
#endif
#include "vscript_server.nut"
#ifdef MAPBASE_VSCRIPT
#include "world.h"
#endif
@@ -555,13 +553,13 @@ bool VScriptServerInit()
IGameSystem::RegisterVScriptAllSystems();
RegisterSharedScriptFunctions();
#else
if ( scriptLanguage == SL_SQUIRREL )
{
//g_pScriptVM->Run( g_Script_vscript_server );
}
#endif
if (scriptLanguage == SL_SQUIRREL)
{
g_pScriptVM->Run( g_Script_vscript_server );
}
VScriptRunScript( "mapspawn", false );
VMPROF_SHOW( pszScriptLanguage, "virtual machine startup" );