diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-04-24 23:54:23 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-04-24 23:57:36 +0200 |
commit | 367190e9232688e48a8f3f5ffc22f5a499f386d1 (patch) | |
tree | fbfeecf882575b9ef1a8b4b66f3b4f32d85b6c98 /crawl-ref/source/terrain.h | |
parent | f8d813ff3589c2ac2adbbbbcbab93028d36fb43b (diff) | |
download | crawl-ref-367190e9232688e48a8f3f5ffc22f5a499f386d1.tar.gz crawl-ref-367190e9232688e48a8f3f5ffc22f5a499f386d1.zip |
Assert that no passable feature is placed on map border.
layout_cross could put water or lava there, which crashed in a number of
cases: patrolling monsters, wandering monsters, throwing an item, possibly
many more.
Diffstat (limited to 'crawl-ref/source/terrain.h')
-rw-r--r-- | crawl-ref/source/terrain.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/terrain.h b/crawl-ref/source/terrain.h index 779a348455..85b0d58740 100644 --- a/crawl-ref/source/terrain.h +++ b/crawl-ref/source/terrain.h @@ -117,6 +117,7 @@ bool slide_feature_over(const coord_def &src, bool announce = true); bool is_critical_feature(dungeon_feature_type feat); +bool is_valid_border_feat(dungeon_feature_type feat); void init_feat_desc_cache(); dungeon_feature_type feat_by_desc(std::string desc); |