summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util/levcomp.ypp
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-02-19 18:54:42 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-02-19 18:54:42 +0000
commita191a19ff4afeae3cbc76f120463152c5ebfc2ea (patch)
treeb6cb038b12e26ba5b1b3f69867ef1701ae60d533 /crawl-ref/source/util/levcomp.ypp
parente9b1a504be1d94eab7a724ba5935aaf48fe9e4cb (diff)
downloadcrawl-ref-a191a19ff4afeae3cbc76f120463152c5ebfc2ea.tar.gz
crawl-ref-a191a19ff4afeae3cbc76f120463152c5ebfc2ea.zip
Updated entry vaults (David).
Level compiler is stricter with MAP sections. Block SHUFFLE: now uses / as a separator to avoid confusion. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@955 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/util/levcomp.ypp')
-rw-r--r--crawl-ref/source/util/levcomp.ypp7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/util/levcomp.ypp b/crawl-ref/source/util/levcomp.ypp
index 41848978f8..62817052a9 100644
--- a/crawl-ref/source/util/levcomp.ypp
+++ b/crawl-ref/source/util/levcomp.ypp
@@ -136,7 +136,12 @@ metaline : place
shuffle : SHUFFLE { }
| SHUFFLE STRING
{
- lc_map.add_shuffle($2);
+ std::string err = lc_map.add_shuffle($2);
+ if (!err.empty())
+ yyerror(
+ make_stringf(
+ "Bad shuffle argument: '%s' (%s)",
+ $2, err.c_str() ).c_str() );
}
tags : TAGS tagstrings {}