summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/clua.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2011-11-11 15:55:06 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2011-11-11 15:59:28 +1000
commit7680a4159ee9a5230b08a185e6caf28dccc21fd4 (patch)
tree6ddb7f485b77461f5e2bd515bafc0b5f33b2eb7e /crawl-ref/source/clua.cc
parent87f38c09d68e9ba69a323e83a5fe3872325fc5ae (diff)
downloadcrawl-ref-7680a4159ee9a5230b08a185e6caf28dccc21fd4.tar.gz
crawl-ref-7680a4159ee9a5230b08a185e6caf28dccc21fd4.zip
Solve minor tag name issue for Lua marker compatibility.
util/gen_luatags.py will now generate dat/dlua/tags.lua. It's pretty simplistic at the minute -- just mapping the relevant TAG_MINOR_XXX to a numeric value. This is obviously not automated, and will need to be run whenever you update tag-version.h /and/ wish to be able to access one of those tags from Lua. It could do more fancy things, I suppose, but having it simple for now solves a relatively minor issue which could, in theory, become more prevalent if or when we start modifying markers more regularly. At the very least, it means we don't need to bump the major version every time I change a fog machine parameter.
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r--crawl-ref/source/clua.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc
index c0d0fe510e..997118482e 100644
--- a/crawl-ref/source/clua.cc
+++ b/crawl-ref/source/clua.cc
@@ -668,6 +668,7 @@ void CLua::init_lua()
execfile("dlua/util.lua", true, true);
execfile("dlua/iter.lua", true, true);
+ execfile("dlua/tags.lua", true, true);
execfile("dlua/init.lua", true, true);
if (managed_vm)