diff options
author | Neil Moore <neil@s-z.org> | 2013-11-15 03:30:37 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-11-15 03:30:37 -0500 |
commit | 0b10bd3b8a6972c625a3e7ea1a87c6160918b080 (patch) | |
tree | f13cd5219437a550cd32747de355ee46e673719f /crawl-ref/source/luaterp.cc | |
parent | 5f91bcc093016843890b92342dcc3d5b7568d418 (diff) | |
download | crawl-ref-0b10bd3b8a6972c625a3e7ea1a87c6160918b080.tar.gz crawl-ref-0b10bd3b8a6972c625a3e7ea1a87c6160918b080.zip |
Wizmode command &^U for a clua prompt.
Works just like &^T, but uses clua instead of dlua.
Diffstat (limited to 'crawl-ref/source/luaterp.cc')
-rw-r--r-- | crawl-ref/source/luaterp.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/luaterp.cc b/crawl-ref/source/luaterp.cc index 91f056b29c..406e757356 100644 --- a/crawl-ref/source/luaterp.cc +++ b/crawl-ref/source/luaterp.cc @@ -142,20 +142,20 @@ bool luaterp_running() static bool _loaded_terp_files = false; -void debug_terp_dlua() +void debug_terp_dlua(CLua &vm) { if (!_loaded_terp_files) { - dlua.execfile("dlua/debug.lua", false, false); + vm.execfile("dlua/debug.lua", false, false); for (unsigned int i = 0; i < Options.terp_files.size(); i++) { - dlua.execfile(Options.terp_files[i].c_str(), false, false); - if (!dlua.error.empty()) - mprf(MSGCH_ERROR, "Lua error: %s", dlua.error.c_str()); + vm.execfile(Options.terp_files[i].c_str(), false, false); + if (!vm.error.empty()) + mprf(MSGCH_ERROR, "Lua error: %s", vm.error.c_str()); } _loaded_terp_files = true; } - _run_dlua_interpreter(dlua); + _run_dlua_interpreter(vm); } #endif |