summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.h
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-07-28 14:53:25 -0400
committerNeil Moore <neil@s-z.org>2014-07-28 15:19:53 -0400
commitba99023e2d48f18612eb27a9319e8c6cdf195909 (patch)
treed850cca6f535a23d64d987acc2ad7e72e6135e7a /crawl-ref/source/dungeon.h
parent3eeb555d4324502f122219ceb12cb05b9586eadb (diff)
downloadcrawl-ref-ba99023e2d48f18612eb27a9319e8c6cdf195909.tar.gz
crawl-ref-ba99023e2d48f18612eb27a9319e8c6cdf195909.zip
Don't crash when abyss map placement is vetoed (#8833)
Diffstat (limited to 'crawl-ref/source/dungeon.h')
-rw-r--r--crawl-ref/source/dungeon.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/crawl-ref/source/dungeon.h b/crawl-ref/source/dungeon.h
index d581ac8a7b..208aaf8d56 100644
--- a/crawl-ref/source/dungeon.h
+++ b/crawl-ref/source/dungeon.h
@@ -54,6 +54,19 @@ enum map_mask_type
class dgn_region;
typedef vector<dgn_region> dgn_region_list;
+class dgn_veto_exception : public exception
+{
+public:
+ dgn_veto_exception(const string& _msg) : msg(_msg) { }
+ ~dgn_veto_exception() throw () { }
+ const char *what() const throw ()
+ {
+ return msg.c_str();
+ }
+private:
+ string msg;
+};
+
class dgn_region
{
public: