summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/show.cc
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/show.cc
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/show.cc')
-rw-r--r--crawl-ref/source/show.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/show.cc b/crawl-ref/source/show.cc
index d5a00c9243..ff655b629e 100644
--- a/crawl-ref/source/show.cc
+++ b/crawl-ref/source/show.cc
@@ -392,7 +392,7 @@ static void _update_monster(monster* mons)
}
bool show_location = (mons->friendly()
- || (mons->constricted_by == MHITYOU));
+ || (mons->constricted_by == MID_PLAYER));
// maybe show unstealthy invis monsters
if (show_location