diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-02-11 00:37:33 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-02-11 00:37:33 +0000 |
commit | 1c5f5dc9b4118fd3dbdfbbfaa3b472090d4d0395 (patch) | |
tree | 05372611a3c5b90dc4e6f85519b9a648366fb878 /crawl-ref/source/tile2.cc | |
parent | cdb351ec5d687f44623cc402e371825f98599bf7 (diff) | |
download | crawl-ref-1c5f5dc9b4118fd3dbdfbbfaa3b472090d4d0395.tar.gz crawl-ref-1c5f5dc9b4118fd3dbdfbbfaa3b472090d4d0395.zip |
Fixing "unknown stair" tiles issues where stairs that should be known weren't being drawn as such.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3426 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tile2.cc')
-rw-r--r-- | crawl-ref/source/tile2.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/crawl-ref/source/tile2.cc b/crawl-ref/source/tile2.cc index 70005427a9..52eca0f79a 100644 --- a/crawl-ref/source/tile2.cc +++ b/crawl-ref/source/tile2.cc @@ -773,15 +773,6 @@ 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); @@ -793,6 +784,14 @@ void tcache_compose_normal(int ix, int *fg, int *bg) NULL); } + // 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_TRAVEL_EX) && (bg0 & TILE_FLAG_UNSEEN)) { tcache_overlay(tc_img, ix, TILE_TRAVEL_EXCLUSION, TREGION_0_NORMAL, &c, |