summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tileview.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-09-02 00:26:04 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-09-02 00:26:46 +0200
commite5896199816a531e7d45b74e28665150a1d480a6 (patch)
tree310f9598b73bb923cd2cf3f1920a1842144807d6 /crawl-ref/source/tileview.cc
parentc2056710e74d7992a70fe69a5a282fa31fac6749 (diff)
downloadcrawl-ref-e5896199816a531e7d45b74e28665150a1d480a6.tar.gz
crawl-ref-e5896199816a531e7d45b74e28665150a1d480a6.zip
Add an option, tile_water_anim=false, to disable animation of liquids.
No docs yet.
Diffstat (limited to 'crawl-ref/source/tileview.cc')
-rw-r--r--crawl-ref/source/tileview.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/tileview.cc b/crawl-ref/source/tileview.cc
index 1ed1c9f1a5..0cd657df39 100644
--- a/crawl-ref/source/tileview.cc
+++ b/crawl-ref/source/tileview.cc
@@ -1037,7 +1037,7 @@ void tile_apply_animations(tileidx_t bg, tile_flavour *flv)
tileidx_t bg_idx = bg & TILE_FLAG_MASK;
if (bg_idx == TILE_DNGN_PORTAL_WIZARD_LAB)
flv->special = (flv->special + 1) % tile_dngn_count(bg_idx);
- else if (bg_idx == TILE_DNGN_LAVA)
+ else if (bg_idx == TILE_DNGN_LAVA && Options.tile_water_anim)
{
// Lava tiles are four sets of four tiles (the second and fourth
// sets are the same). This cycles between the four sets, picking
@@ -1045,8 +1045,11 @@ void tile_apply_animations(tileidx_t bg, tile_flavour *flv)
flv->special = ((flv->special - ((flv->special % 4)))
+ 4 + random2(4)) % tile_dngn_count(bg_idx);
}
- else if (bg_idx > TILE_DNGN_LAVA && bg_idx < TILE_BLOOD)
+ else if (bg_idx > TILE_DNGN_LAVA && bg_idx < TILE_BLOOD
+ && Options.tile_water_anim)
+ {
flv->special = random2(256);
+ }
else if (bg_idx == TILE_WALL_NORMAL)
{
tileidx_t basetile = tile_dngn_basetile(flv->wall);