diff options
author | Neil Moore <neil@s-z.org> | 2012-06-19 22:51:14 -0400 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2012-07-04 18:04:09 +0200 |
commit | 87c40161cad6ace4f6c2abbc0a8e9696df75ac30 (patch) | |
tree | f8bdc11bb06fb9b88ad8a1e81face0a83fb12748 /crawl-ref/source/externs.h | |
parent | 62cb7de5ac324c4438784bf0454c41373cdc1f69 (diff) | |
download | crawl-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/externs.h')
-rw-r--r-- | crawl-ref/source/externs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index b57b935276..c304c5588d 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -266,6 +266,7 @@ struct run_check_dir }; typedef uint32_t mid_t; +#define PRImidt PRIu32 #define MID_PLAYER ((mid_t)0xffffffff) // the numbers are meaningless, there's just plenty of space for gods, env, // and whatever else we want to have, while keeping all monster ids smaller. |