summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/clua.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-22 12:40:10 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-22 12:40:10 +0000
commit639bda974405b152b7655657a8a4af441888d74c (patch)
treede6ee59345533e113cedfa0aecce31df00174246 /crawl-ref/source/clua.cc
parentabb8fd86e78c57461f6729faafec5ea35ccd18a9 (diff)
downloadcrawl-ref-639bda974405b152b7655657a8a4af441888d74c.tar.gz
crawl-ref-639bda974405b152b7655657a8a4af441888d74c.zip
Moved lua/base.lua -> dat/clua/userbase.lua, source it automatically.
Removed references to base.lua from init.txt, and the other lua files. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1623 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r--crawl-ref/source/clua.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc
index 2f21d7db44..da7c886541 100644
--- a/crawl-ref/source/clua.cc
+++ b/crawl-ref/source/clua.cc
@@ -588,6 +588,8 @@ void CLua::init_lua()
lua_register(_state, "pcall", clua_guarded_pcall);
lua_register(_state, "loadfile", clua_loadfile);
lua_register(_state, "dofile", clua_dofile);
+
+ execfile("clua/userbase.lua", true);
}
}