summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-28 12:04:38 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-28 12:04:38 +0000
commitd1968a5ba426ba5d202ff2824115b568de3f5f3f (patch)
tree04495c853b89bb901659bf1959b97ae835e79816 /crawl-ref/source/mapdef.h
parent26f8579e71cadfe6d757a1a8c979a51eba6305df (diff)
downloadcrawl-ref-d1968a5ba426ba5d202ff2824115b568de3f5f3f.tar.gz
crawl-ref-d1968a5ba426ba5d202ff2824115b568de3f5f3f.zip
Updated level-design.txt with a basic overview of the Lua possibilities.
Fixed some inconsistencies in the handling of Lua errors. Tweaked the lexer to allow spaces before Lua chunk prefixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1676 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapdef.h')
-rw-r--r--crawl-ref/source/mapdef.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/mapdef.h b/crawl-ref/source/mapdef.h
index 623b97dd55..cfd1488510 100644
--- a/crawl-ref/source/mapdef.h
+++ b/crawl-ref/source/mapdef.h
@@ -453,7 +453,7 @@ public:
std::string run_lua(bool skip_main);
// Returns true if the validation passed.
- bool test_lua_validate();
+ bool test_lua_validate(bool croak = false);
// Returns true if *not* vetoed, i.e., the map is good to go.
bool test_lua_veto();
@@ -525,7 +525,7 @@ public:
private:
void write_depth_ranges(FILE *) const;
void read_depth_ranges(FILE *);
- bool test_lua_boolchunk(dlua_chunk &);
+ bool test_lua_boolchunk(dlua_chunk &, bool def = false, bool croak = false);
std::string rewrite_chunk_errors(const std::string &s) const;
std::string add_key_field(