summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/externs.h
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-08 23:01:50 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-08 23:01:50 +0000
commit4000c36207d475d52ea646d9a66dd05e04828cd5 (patch)
tree3fbc7aac3b0cfd06bb0e93bc7703900798e60918 /crawl-ref/source/externs.h
parentbd14ba83d0ace9c9f06f3045d4e05b2f0e26f1b0 (diff)
downloadcrawl-ref-4000c36207d475d52ea646d9a66dd05e04828cd5.tar.gz
crawl-ref-4000c36207d475d52ea646d9a66dd05e04828cd5.zip
Fix [2151183]: SIGHUP with the range view annotator active maintained
the annotated colours when saving. Fixed by adding the ability to store arbitrary exit hooks to be executed on (unusual) shutdown; for now they're executed FIFO, but it should probably be LIFO with a stack. Anyway the only thing that uses this now is the range view annotator. Oh, and it only works if you're using libunix.cc. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8999 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/externs.h')
-rw-r--r--crawl-ref/source/externs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h
index 7149b5c265..41e4a0fecf 100644
--- a/crawl-ref/source/externs.h
+++ b/crawl-ref/source/externs.h
@@ -1679,6 +1679,7 @@ private:
typedef FixedArray<dungeon_feature_type, GXM, GYM> feature_grid;
typedef FixedArray<unsigned, ENV_SHOW_DIAMETER, ENV_SHOW_DIAMETER>
env_show_grid;
+class crawl_exit_hook;
struct crawl_environment
{
@@ -1728,7 +1729,7 @@ public:
map_markers markers;
// Place to associate arbitrary data with a particular level.
- // Sort of like player::atribute
+ // Sort of like player::attribute
CrawlHashTable properties;
// Rate at which random monsters spawn, with lower numbers making