summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/defines.h
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2012-06-19 22:51:14 -0400
committerRaphael Langella <raphael.langella@gmail.com>2012-07-04 18:04:09 +0200
commit87c40161cad6ace4f6c2abbc0a8e9696df75ac30 (patch)
treef8bdc11bb06fb9b88ad8a1e81face0a83fb12748 /crawl-ref/source/defines.h
parent62cb7de5ac324c4438784bf0454c41373cdc1f69 (diff)
downloadcrawl-ref-87c40161cad6ace4f6c2abbc0a8e9696df75ac30.tar.gz
crawl-ref-87c40161cad6ace4f6c2abbc0a8e9696df75ac30.zip
Use mid rather than mindex for constriction.
actor::constricting is now a pointer to a map from mids to durations; if the actor is not constricting anything, we use a NULL pointer rather than an empty map to save memory. Save compatibility: Because constrictees might be loaded after constrictors (and vice versa), we cannot convert the old constriction arrays (which use mindex) until all the monsters have been loaded. Instead, save the constriction data temporarily, and create the maps at the end of tag_read_level_monsters().
Diffstat (limited to 'crawl-ref/source/defines.h')
-rw-r--r--crawl-ref/source/defines.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/crawl-ref/source/defines.h b/crawl-ref/source/defines.h
index 699d75979d..f8ff69afa0 100644
--- a/crawl-ref/source/defines.h
+++ b/crawl-ref/source/defines.h
@@ -238,8 +238,6 @@ const int ANTITRAIN_PENALTY = 2;
#define MAX_MONSTER_HP 10000
-#define MAX_CONSTRICT 8
-
// some shortcuts:
#define menv env.mons
#define mitm env.item