diff options
author | Chris Campbell <chriscampbell89@gmail.com> | 2012-03-18 00:20:47 +0000 |
---|---|---|
committer | Chris Campbell <chriscampbell89@gmail.com> | 2012-03-18 03:52:50 +0000 |
commit | cc0c3fad3c2e465870a6f9f9a9bacc14829ad985 (patch) | |
tree | 6bbefbecbe90316c9e963213f68126524cd245dc /crawl-ref/source/map_knowledge.h | |
parent | 5f489ad4e0fdd21b0eabdecfefd60e40e3915bad (diff) | |
download | crawl-ref-cc0c3fad3c2e465870a6f9f9a9bacc14829ad985.tar.gz crawl-ref-cc0c3fad3c2e465870a6f9f9a9bacc14829ad985.zip |
Let Ctrl+C clear clouds that are out of LOS
Diffstat (limited to 'crawl-ref/source/map_knowledge.h')
-rw-r--r-- | crawl-ref/source/map_knowledge.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/map_knowledge.h b/crawl-ref/source/map_knowledge.h index 8cb540638c..22e398ed04 100644 --- a/crawl-ref/source/map_knowledge.h +++ b/crawl-ref/source/map_knowledge.h @@ -241,6 +241,15 @@ struct map_cell _cloud = new cloud_info(ci); } + void clear_cloud() + { + if (_cloud) + { + delete _cloud; + _cloud = 0; + } + } + bool known() const { return !!(flags & MAP_GRID_KNOWN); |