From 30821ad8deb42728fbba9de60dda31033f70aaac Mon Sep 17 00:00:00 2001 From: red-001 Date: Thu, 4 Jan 2018 07:21:12 +0000 Subject: [CSM] Don't load the IO library. (#6087) * [CSM] Don't load the IO library. * Rename the function to match the Lua API function name and add a missing `const` * Add a comment to explain some strange code and fix the other issues pointed out by shadowninja. --- src/script/scripting_client.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/script/scripting_client.cpp') diff --git a/src/script/scripting_client.cpp b/src/script/scripting_client.cpp index 29836c47b..14cdc199b 100644 --- a/src/script/scripting_client.cpp +++ b/src/script/scripting_client.cpp @@ -33,10 +33,10 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "lua_api/l_localplayer.h" #include "lua_api/l_camera.h" -ClientScripting::ClientScripting(Client *client) +ClientScripting::ClientScripting(Client *client): + ScriptApiBase(ScriptingType::Client) { setGameDef(client); - setType(ScriptingType::Client); SCRIPTAPI_PRECHECKHEADER @@ -59,9 +59,6 @@ ClientScripting::ClientScripting(Client *client) lua_pushstring(L, "client"); lua_setglobal(L, "INIT"); - lua_pushstring(L, "/"); - lua_setglobal(L, "DIR_DELIM"); - infostream << "SCRIPTAPI: Initialized client game modules" << std::endl; } -- cgit v1.2.3