summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/env.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-01-01 05:04:13 +0100
committerAdam Borowski <kilobyte@angband.pl>2012-01-03 04:46:00 +0100
commite96f19b77b2a50f2ed3b0169e066b941a58ea495 (patch)
tree06b5773326cb2f9bf2efc71224d388818beffc41 /crawl-ref/source/env.h
parent405e9b68034c5e8793f6c169cbed7dd90d4ac8ba (diff)
downloadcrawl-ref-e96f19b77b2a50f2ed3b0169e066b941a58ea495.tar.gz
crawl-ref-e96f19b77b2a50f2ed3b0169e066b941a58ea495.zip
Cache absdepth0, now that it has to be calculated.
The cached value intentionally is stored in env.absdepth0 rather than you.absdepth0 to catch attempts to modify it.
Diffstat (limited to 'crawl-ref/source/env.h')
-rw-r--r--crawl-ref/source/env.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/env.h b/crawl-ref/source/env.h
index 957dc4c4a0..1d883e955d 100644
--- a/crawl-ref/source/env.h
+++ b/crawl-ref/source/env.h
@@ -104,6 +104,7 @@ struct crawl_environment
int sanctuary_time;
int forest_awoken_until;
int density;
+ int absdepth0;
// Volatile level flags, not saved.
uint32_t level_state;