From 10104fd665356015a69e545a84452d1f85fe2698 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Thu, 18 Jan 2007 08:23:42 +0000 Subject: 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 --- crawl-ref/source/util/levcomp.ypp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/util/levcomp.ypp') 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) -- cgit v1.2.3-54-g00ecf