summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util/levcomp.ypp
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-18 08:23:42 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-18 08:23:42 +0000
commit10104fd665356015a69e545a84452d1f85fe2698 (patch)
tree20f2164e1677a4cc386977826e2cfb80c72ba83a /crawl-ref/source/util/levcomp.ypp
parent2602987755200fb6399fdc8b8183d00ab1abc076 (diff)
downloadcrawl-ref-10104fd665356015a69e545a84452d1f85fe2698.tar.gz
crawl-ref-10104fd665356015a69e545a84452d1f85fe2698.zip
New entry vaults and regular vaults (Lemuel). The regular vaults are probably
intended to be portal vaults for Hell portals; we need to add support for portal vaults. Added support for monster slot randomisation for maps. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@865 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/util/levcomp.ypp')
-rw-r--r--crawl-ref/source/util/levcomp.ypp9
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/util/levcomp.ypp b/crawl-ref/source/util/levcomp.ypp
index 6a16128b94..d223161b02 100644
--- a/crawl-ref/source/util/levcomp.ypp
+++ b/crawl-ref/source/util/levcomp.ypp
@@ -184,12 +184,13 @@ mnames : mname COMMA mnames
mname : MONSTER_NAME
{
- bool recognised = lc_map.mons.add_mons($1);
- if (!recognised)
+ std::string err = lc_map.mons.add_mons($1);
+ if (!err.empty())
{
char buf[300];
- snprintf(buf, sizeof buf, "unknown monster '%s'",
- $1);
+ snprintf(buf, sizeof buf,
+ "bad monster spec '%s' (%s)",
+ $1, err.c_str());
yyerror(buf);
}
if (lc_map.mons.size() > 7)