diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-24 19:38:20 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-24 19:38:20 +0000 |
commit | 29e85c811ddbf45cc8cb830012abefce8a92009a (patch) | |
tree | 0a1ef24f6ffc42389b48dd1f5a665ee9159b1561 /crawl-ref/source/mapdef.h | |
parent | 7a6a09598a661b45bb3d96f48281ea7520370590 (diff) | |
download | crawl-ref-29e85c811ddbf45cc8cb830012abefce8a92009a.tar.gz crawl-ref-29e85c811ddbf45cc8cb830012abefce8a92009a.zip |
Hackily rewrite Lua chunk errors to reflect line numbers from the original
.des file so that level-designers can find the lines that are causing the
problem.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1641 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapdef.h')
-rw-r--r-- | crawl-ref/source/mapdef.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/mapdef.h b/crawl-ref/source/mapdef.h index 94bad0bc8f..c2ef6e897d 100644 --- a/crawl-ref/source/mapdef.h +++ b/crawl-ref/source/mapdef.h @@ -437,8 +437,6 @@ public: void set_file(const std::string &s); std::string run_lua(bool skip_main); - void run_strip_prelude(); - void strip_main(); std::string validate(); @@ -481,6 +479,7 @@ public: private: void write_depth_ranges(FILE *) const; void read_depth_ranges(FILE *); + std::string rewrite_chunk_errors(const std::string &s) const; std::string add_key_field( const std::string &s, |