summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/defines.h
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2012-06-12 17:16:46 +0200
committerRaphael Langella <raphael.langella@gmail.com>2012-06-12 17:16:46 +0200
commit05d7c051ce56d2e82d19a47095555d643192fe18 (patch)
tree7b8581723c20e05aa49ddda5e8b1f4e9114dd89b /crawl-ref/source/defines.h
parent734513d70465e04e8145ebae1de37a253c513cc5 (diff)
downloadcrawl-ref-05d7c051ce56d2e82d19a47095555d643192fe18.tar.gz
crawl-ref-05d7c051ce56d2e82d19a47095555d643192fe18.zip
Use a list instead of an array to store Vehumet's recent gifts.
Also, use it as a queue and drop older entries when max size is reach (10) instead of aging the queue manually.
Diffstat (limited to 'crawl-ref/source/defines.h')
-rw-r--r--crawl-ref/source/defines.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/defines.h b/crawl-ref/source/defines.h
index 46e35cad27..b05bdc914e 100644
--- a/crawl-ref/source/defines.h
+++ b/crawl-ref/source/defines.h
@@ -210,7 +210,7 @@ const int MAX_SEC_ENCHANT = 2;
#define POWER_DECAY 50
const int MAX_KNOWN_SPELLS = 21;
-const int MAX_RECENT_SPELLS = 10;
+const unsigned int MAX_RECENT_SPELLS = 10;
const int INVALID_ABSDEPTH = -1000;