diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-02-09 19:45:29 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-02-09 19:45:29 +0000 |
commit | 9b54374b1ff999f0302cc856106468c49de561d0 (patch) | |
tree | 6681e427792e4b3677c519f053bace274ab83908 | |
parent | 0c86c2bf4ca77a5ebb8980091ae7439b9c245493 (diff) | |
download | crawl-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
-rw-r--r-- | crawl-ref/source/rltiles/dc-misc.txt | 1 | ||||
-rw-r--r-- | crawl-ref/source/rltiles/dc-misc/new_stair.bmp | bin | 0 -> 2102 bytes | |||
-rw-r--r-- | crawl-ref/source/tile1.cc | 7 | ||||
-rw-r--r-- | crawl-ref/source/tile2.cc | 9 |
4 files changed, 17 insertions, 0 deletions
diff --git a/crawl-ref/source/rltiles/dc-misc.txt b/crawl-ref/source/rltiles/dc-misc.txt index e9bc3b1a14..91f6a68ca4 100644 --- a/crawl-ref/source/rltiles/dc-misc.txt +++ b/crawl-ref/source/rltiles/dc-misc.txt @@ -74,6 +74,7 @@ error ERROR travel_exclusion TRAVEL_EXCLUSION
%rim 1
todo TODO
+new_stair NEW_STAIR
%rim 0
char20 CHAR00
diff --git a/crawl-ref/source/rltiles/dc-misc/new_stair.bmp b/crawl-ref/source/rltiles/dc-misc/new_stair.bmp Binary files differnew file mode 100644 index 0000000000..c877a7e62d --- /dev/null +++ b/crawl-ref/source/rltiles/dc-misc/new_stair.bmp diff --git a/crawl-ref/source/tile1.cc b/crawl-ref/source/tile1.cc index bfab0ddc9f..25c7352cc6 100644 --- a/crawl-ref/source/tile1.cc +++ b/crawl-ref/source/tile1.cc @@ -3605,6 +3605,13 @@ void tile_draw_floor() object = (int)grid_secret_door_appearance(gc.x, gc.y); tile_dngn[gc.x][gc.y] = tileidx_feature(object); + + if (is_travelable_stair((dungeon_feature_type)object) && + !travel_cache.know_stair(gc)) + { + tile_dngn[gc.x][gc.y] |= TILE_FLAG_NEW_STAIR; + } + gv_now[gc.x][gc.y] = object; } bg = tile_dngn[gc.x][gc.y]; 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); |