diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-20 18:11:48 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-20 18:11:48 +0000 |
commit | 58a4fbec35500d744cb966d43885734b4da5f7d9 (patch) | |
tree | 433b5f2bf84e05c1f556bf7daa15387db34866a6 /crawl-ref/source/tile2.cc | |
parent | b184952d37ef761e55a1035025da0288b5c21cf0 (diff) | |
download | crawl-ref-58a4fbec35500d744cb966d43885734b4da5f7d9.tar.gz crawl-ref-58a4fbec35500d744cb966d43885734b4da5f7d9.zip |
Fixing tile caching bug (resulting in temporarily disappearing items/monsters.)
Added sanctuary art.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3310 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tile2.cc')
-rw-r--r-- | crawl-ref/source/tile2.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/tile2.cc b/crawl-ref/source/tile2.cc index 1a92a9b4ad..7d294688f1 100644 --- a/crawl-ref/source/tile2.cc +++ b/crawl-ref/source/tile2.cc @@ -438,7 +438,7 @@ static int tcache_find_id_normal(int kind, int *fg, int *bg, int *is_new) if ((int)tc0->id[0] == fg[0] && (int)tc0->id[1] == bg[0]) break; - if ((int)tc0->id[0] == 0 || next == NULL) + if (next == NULL) { //end of used cache *is_new = 1; @@ -701,6 +701,9 @@ void tcache_compose_normal(int ix, int *fg, int *bg) if (new_bg) tcache_overlay(tc_img, ix, new_bg, TREGION_0_NORMAL, &c, NULL); + if ((bg0 & TILE_FLAG_SANCTUARY) && !(bg0 & TILE_FLAG_UNSEEN)) + tcache_overlay(tc_img, ix, TILE_SANCTUARY, TREGION_0_NORMAL, &c, NULL); + // Tile cursor if (bg0 & TILE_FLAG_CURSOR) { @@ -793,7 +796,6 @@ void tcache_compose_normal(int ix, int *fg, int *bg) tcache_overlay(tc_img, ix, TILE_TRAVEL_EXCLUSION, TREGION_0_NORMAL, &c, NULL); } - } // Tile cursor |