From 58a4fbec35500d744cb966d43885734b4da5f7d9 Mon Sep 17 00:00:00 2001 From: ennewalker Date: Sun, 20 Jan 2008 18:11:48 +0000 Subject: 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 --- crawl-ref/source/tile2.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/tile2.cc') 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 -- cgit v1.2.3-54-g00ecf