summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/env.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-08-25 12:29:31 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-08-25 13:03:01 +0200
commitc17ed30b488b7008e9f91ddb092236ba43437eb8 (patch)
tree3e7e99df8dac7c84e5dae0d5348f2cf85c91ba75 /crawl-ref/source/env.h
parentdf459dd09d703311d14f4125cea02f0c79e0a386 (diff)
downloadcrawl-ref-c17ed30b488b7008e9f91ddb092236ba43437eb8.tar.gz
crawl-ref-c17ed30b488b7008e9f91ddb092236ba43437eb8.zip
Cache whether any passages of Golubria or glowing molds are present.
Checking for those every turn costed 1% CPU time each on unwoken_rest, and more on an empty level.
Diffstat (limited to 'crawl-ref/source/env.h')
-rw-r--r--crawl-ref/source/env.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/env.h b/crawl-ref/source/env.h
index 5b50923db0..7f92805757 100644
--- a/crawl-ref/source/env.h
+++ b/crawl-ref/source/env.h
@@ -102,6 +102,9 @@ struct crawl_environment
int forest_awoken_until;
int density;
+ // Volatile level flags, not saved.
+ uint32_t level_state;
+
// Temp stuff.
std::vector<final_effect> final_effects;
};