aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/sh_server_to_client_stringcommands.gnut
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2022-12-01 20:25:12 +0000
committerGitHub <noreply@github.com>2022-12-01 21:25:12 +0100
commit891c2afe222930d9bd5a0edb6471c9f7d8da2d42 (patch)
tree9ed195cfcd8c048cacee8a26b52c10f4872e7dba /Northstar.CustomServers/mod/scripts/vscripts/sh_server_to_client_stringcommands.gnut
parent4730389c3bc0e750eab2ecdc3fd9a781f70e12a3 (diff)
downloadNorthstarMods-891c2afe222930d9bd5a0edb6471c9f7d8da2d42.tar.gz
NorthstarMods-891c2afe222930d9bd5a0edb6471c9f7d8da2d42.zip
Remove unnecessary root table setting and make functions global (#534)
* fix for CHudChat_ProcessMessageStartThread not working in native * remove unneeded NSSetupChathooksClient callback * fix for CServerGameDLL_ProcessMessageStartThread not working in native * remove unneeded NSSetupChathooksServer callback * remove root table setting for ServerToClientStringCommands_Init * remove unneeded ServerToClientStringCommands_Init callback * remove global function
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/sh_server_to_client_stringcommands.gnut')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/sh_server_to_client_stringcommands.gnut7
1 files changed, 0 insertions, 7 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/sh_server_to_client_stringcommands.gnut b/Northstar.CustomServers/mod/scripts/vscripts/sh_server_to_client_stringcommands.gnut
index a51e528f6..18df6a6f6 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/sh_server_to_client_stringcommands.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/sh_server_to_client_stringcommands.gnut
@@ -1,6 +1,4 @@
#if CLIENT
-global function ServerToClientStringCommands_Init
-
global function AddServerToClientStringCommandCallback
global function NSClientCodeCallback_RecievedServerToClientStringCommand
#endif
@@ -14,11 +12,6 @@ struct {
table< string, array< void functionref( array<string> args ) > > callbacks
} file
-void function ServerToClientStringCommands_Init()
-{
- getroottable().rawset( "NSClientCodeCallback_RecievedServerToClientStringCommand", NSClientCodeCallback_RecievedServerToClientStringCommand )
-}
-
void function AddServerToClientStringCommandCallback( string command, void functionref( array<string> args ) callback )
{
if ( !( command in file.callbacks ) )