summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilecell.h
diff options
context:
space:
mode:
authorPete Hurst <pete@streamuniverse.tv>2013-05-24 00:19:30 +0100
committerPete Hurst <pete@streamuniverse.tv>2013-05-25 17:05:48 +0100
commit8f2e336bb97bcaf7a0193c443bb682424dc52b7e (patch)
tree0367ec5a5d7ecf353212e951622526694cf9ef82 /crawl-ref/source/tilecell.h
parent60f276de766666d1f2852beb8c5f3a2159ce8750 (diff)
downloadcrawl-ref-8f2e336bb97bcaf7a0193c443bb682424dc52b7e.tar.gz
crawl-ref-8f2e336bb97bcaf7a0193c443bb682424dc52b7e.zip
Implement cloud alpha overlay tiles layer
This works very well for the most part with two small problems: - Webtiles will not support this yet (in probability, this will stop any clouds showing in webtiles) - Floor items interact strangely and will draw over the top of clouds instead of behind them
Diffstat (limited to 'crawl-ref/source/tilecell.h')
-rw-r--r--crawl-ref/source/tilecell.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/tilecell.h b/crawl-ref/source/tilecell.h
index 1fc7b14cb2..7950151190 100644
--- a/crawl-ref/source/tilecell.h
+++ b/crawl-ref/source/tilecell.h
@@ -21,6 +21,7 @@ struct packed_cell
tileidx_t fg;
tileidx_t bg;
tile_flavour flv;
+ tileidx_t cloud;
bool is_bloody;
bool is_silenced;
@@ -41,7 +42,7 @@ struct packed_cell
bool operator ==(const packed_cell &other) const;
bool operator !=(const packed_cell &other) const { return !(*this == other); }
- packed_cell() : num_dngn_overlay(0), fg(0), bg(0), is_bloody(false),
+ packed_cell() : num_dngn_overlay(0), fg(0), bg(0), cloud(0), is_bloody(false),
is_silenced(false), is_suppressed(false), halo(HALO_NONE),
is_moldy(false), glowing_mold(false), is_sanctuary(false),
is_liquefied(false), mangrove_water(false), orb_glow(0),
@@ -50,6 +51,7 @@ struct packed_cell
packed_cell(const packed_cell* c) : num_dngn_overlay(c->num_dngn_overlay),
fg(c->fg), bg(c->bg), flv(c->flv),
+ cloud(c->cloud),
is_bloody(c->is_bloody),
is_silenced(c->is_silenced),
is_suppressed(c->is_suppressed),