summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tile2.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-02-09 19:45:29 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-02-09 19:45:29 +0000
commit9b54374b1ff999f0302cc856106468c49de561d0 (patch)
tree6681e427792e4b3677c519f053bace274ab83908 /crawl-ref/source/tile2.cc
parent0c86c2bf4ca77a5ebb8980091ae7439b9c245493 (diff)
downloadcrawl-ref-9b54374b1ff999f0302cc856106468c49de561d0.tar.gz
crawl-ref-9b54374b1ff999f0302cc856106468c49de561d0.zip
Adding "unknown stair" marker for tiles.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3420 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tile2.cc')
-rw-r--r--crawl-ref/source/tile2.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/tile2.cc b/crawl-ref/source/tile2.cc
index 46977c7a68..2228dccd1e 100644
--- a/crawl-ref/source/tile2.cc
+++ b/crawl-ref/source/tile2.cc
@@ -773,6 +773,15 @@ void tcache_compose_normal(int ix, int *fg, int *bg)
status_shift += 5;
}
+ // Don't let the "new stair" icon cover up any existing icons, but
+ // draw it otherwise.
+ if (bg0 & TILE_FLAG_NEW_STAIR && status_shift == 0)
+ {
+ tcache_overlay(tc_img, ix, TILE_NEW_STAIR,
+ TREGION_0_NORMAL, &c, NULL);
+ }
+
+
if (bg0 & TILE_FLAG_UNSEEN)
{
tcache_overlay(tc_img, ix, TILE_MESH, TREGION_0_NORMAL, &c, NULL);