diff options
Diffstat (limited to 'crawl-ref/source/externs.h')
-rw-r--r-- | crawl-ref/source/externs.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index ba69a74475..dced0b42aa 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -599,6 +599,15 @@ struct trap_struct unsigned char type; }; +struct map_colour +{ + short colour; + short flags; + + operator short () const { return colour; } + void clear() { colour = flags = 0; } +}; + struct crawl_environment { unsigned char rock_colour; @@ -612,7 +621,8 @@ struct crawl_environment FixedArray< int, GXM, GYM > igrid; // item grid FixedArray< unsigned char, GXM, GYM > cgrid; // cloud grid - FixedArray< unsigned short, GXM, GYM > map; // discovered terrain + FixedArray< unsigned short, GXM, GYM > map; // discovered terrain + FixedArray< map_colour, GXM, GYM > map_col; // map colours FixedArray< unsigned int, 19, 19> show; // view window char FixedArray< unsigned short, 19, 19> show_col; // view window colour |