diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-07-24 16:20:53 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-07-24 17:14:38 +0200 |
commit | 6e9b297febed5732aec54ddd7c07fae46d658ee1 (patch) | |
tree | 0f3c0328e20fe5535ed7f39056a9f52d5cef6ae5 /crawl-ref/source/ghost.h | |
parent | feae41c850580a058031f0315162d7bf3a68b4d0 (diff) | |
download | crawl-ref-6e9b297febed5732aec54ddd7c07fae46d658ee1.tar.gz crawl-ref-6e9b297febed5732aec54ddd7c07fae46d658ee1.zip |
Don't use objects with strange constructors for storing monster resists.
This is the same concept as in neunon's branch "smaller-binary", except it
goes farther, getting rid of a list of objects with transposed resist types
and levels. The old code had an array like:
"+++: rC, rF. ++:rElec. -:rPois", which existed only in static constructors
which then were converted again to a regular struct.
It turns out the whole exercise is nearly pointless: savings are around 27K
rather than neunon's 674K; apparently he uses an ANCIENT compiler on a Mac
that can't handle static object initializers well.
Diffstat (limited to 'crawl-ref/source/ghost.h')
-rw-r--r-- | crawl-ref/source/ghost.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/ghost.h b/crawl-ref/source/ghost.h index e447d1be86..7958a92199 100644 --- a/crawl-ref/source/ghost.h +++ b/crawl-ref/source/ghost.h @@ -9,7 +9,6 @@ #include "enum.h" #include "itemprop.h" #include "mon-enum.h" -#include "mon_resist_def.h" #ifdef USE_TILE int tile_offset_for_labrat_colour(colour_t l_colour); @@ -34,7 +33,7 @@ public: brand_type brand; attack_type att_type; attack_flavour att_flav; - mon_resist_def resists; + resists_t resists; bool spellcaster, cycle_colours; colour_t colour; |