diff options
author | Eduardo Gonzalez <ed.gonzalez3@gmail.com> | 2014-05-09 12:58:20 -0400 |
---|---|---|
committer | reaverb <reaverb.Crawl@gmail.com> | 2014-05-09 13:55:07 -0400 |
commit | 6bbddb8b84b0405eab5d9fef114f26f414af83ca (patch) | |
tree | e957329e5b388d6343b0fc491a717bd0ac172fab /crawl-ref/source/bitary.h | |
parent | f2248c4d6d8cff0e089f7a57ff6b56ad374f1117 (diff) | |
download | crawl-ref-6bbddb8b84b0405eab5d9fef114f26f414af83ca.tar.gz crawl-ref-6bbddb8b84b0405eab5d9fef114f26f414af83ca.zip |
Recalculate cache of equipped unrands with world_reacts on save load
This allows us to more easily add or remove those hooks on existing unrands.
The data type has also been changed to FixedBitVector from unsigned short,
allowing the expanded ring slots to be referenced.
Diffstat (limited to 'crawl-ref/source/bitary.h')
-rw-r--r-- | crawl-ref/source/bitary.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/bitary.h b/crawl-ref/source/bitary.h index 8cadb3c182..139950b051 100644 --- a/crawl-ref/source/bitary.h +++ b/crawl-ref/source/bitary.h @@ -83,6 +83,11 @@ public: return data.count(); } + inline bool any() const + { + return data.any(); + } + inline FixedBitVector<SIZE>& operator|=(const FixedBitVector<SIZE>&x) { data |= x.data; |