mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-23 20:09:45 +03:00
Enabling vscript_client.nut and vscript_server.nut (fixes issue with doc aliases)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
static char g_Script_vscript_server[] = R"vscript(
|
||||
//========== Copyright <20> 2008, Valve Corporation, All rights reserved. ========
|
||||
//
|
||||
// Purpose:
|
||||
@@ -38,7 +39,7 @@ function __ReplaceClosures( script, scope )
|
||||
|
||||
local tempParent = { getroottable = function() { return null; } };
|
||||
local temp = { runscript = script };
|
||||
delegate tempParent : temp;
|
||||
temp.set_delegate(tempParent);
|
||||
|
||||
temp.runscript()
|
||||
foreach( key,val in temp )
|
||||
@@ -125,3 +126,4 @@ function __DumpScope( depth, table )
|
||||
}
|
||||
}
|
||||
|
||||
)vscript";
|
||||
Reference in New Issue
Block a user