From 99548fb47fee447b5f22d5338501ac574086c4fd Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Wed, 15 Aug 2007 06:35:03 +0000 Subject: Added helper functions for loading files and NPCs as scripts. Put Lua helpers into a separate library automatically loaded into new contexts. --- src/scripting/lua.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/scripting/lua.cpp') diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp index 0fc3283d..34415a27 100644 --- a/src/scripting/lua.cpp +++ b/src/scripting/lua.cpp @@ -356,6 +356,7 @@ LuaScript::LuaScript(): lua_settable(mState, LUA_REGISTRYINDEX); lua_settop(mState, 0); + loadFile("scripts/libtmw.lua"); } LuaScript::~LuaScript() -- cgit v1.2.3-70-g09d2