diff options
author | Neil Moore <neil@s-z.org> | 2014-01-31 12:30:59 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-01-31 12:30:59 -0500 |
commit | 2bf61e57450fed39e2aa39d7cb698fe8d10f1c73 (patch) | |
tree | 8c642e3b8a6c2b7bd96b358c24d2d584e4c58118 /crawl-ref/source/terrain.h | |
parent | 192af8142f6b13e335719d228740645f0848ef50 (diff) | |
download | crawl-ref-2bf61e57450fed39e2aa39d7cb698fe8d10f1c73.tar.gz crawl-ref-2bf61e57450fed39e2aa39d7cb698fe8d10f1c73.zip |
Don't crash on debug scan when an exit feature is covered.
See !lm EightySix fofi crash -log for an example. Now we also check
the terrain change markers for the desired feature.
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 6dfca2541e..2234a66707 100644 --- a/crawl-ref/source/terrain.h +++ b/crawl-ref/source/terrain.h @@ -125,6 +125,7 @@ bool cell_is_clingable(const coord_def pos); bool cell_can_cling_to(const coord_def& from, const coord_def to); bool is_boring_terrain(dungeon_feature_type feat); +dungeon_feature_type orig_terrain(coord_def pos); void temp_change_terrain(coord_def pos, dungeon_feature_type newfeat, int dur, terrain_change_type type = TERRAIN_CHANGE_GENERIC, const monster* mon = NULL); |