diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-11 23:18:30 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-11 23:18:30 +0000 |
commit | 144d923598efdf70d12d19437b2a59dee0015c01 (patch) | |
tree | 896505eebfbe235c63a051e54b1ddca2a6263e52 /crawl-ref/source/tilereg.cc | |
parent | cc99e42dae0091ba2ad43dde3db0660e083bb793 (diff) | |
download | crawl-ref-144d923598efdf70d12d19437b2a59dee0015c01.tar.gz crawl-ref-144d923598efdf70d12d19437b2a59dee0015c01.zip |
Detected secret doors are now treated as a distinct new door type, so
that stupid monsters will continue to ignore them as long as they've
never been opened.
Shifts wall and door types of existing save files.
Also apply patch by one the "nobodies" to make bloody tiles show up again.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10167 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilereg.cc')
-rw-r--r-- | crawl-ref/source/tilereg.cc | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc index 1d99c60697..cc015ab602 100644 --- a/crawl-ref/source/tilereg.cc +++ b/crawl-ref/source/tilereg.cc @@ -265,15 +265,15 @@ void DungeonRegion::pack_background(unsigned int bg, int x, int y) m_buf_dngn.add(flv.floor, x, y); } - if (bg & TILE_FLAG_BLOOD) + m_buf_dngn.add(bg_idx, x, y); + + if (bg & TILE_FLAG_BLOOD && bg_idx > TILE_DNGN_UNSEEN) { tile_flavour &flv = env.tile_flv[x + m_cx_to_gx][y + m_cy_to_gy]; int offset = flv.special % tile_dngn_count(TILE_BLOOD); m_buf_dngn.add(TILE_BLOOD + offset, x, y); } - m_buf_dngn.add(bg_idx, x, y); - if (bg & TILE_FLAG_HALO) m_buf_dngn.add(TILE_HALO, x, y); @@ -577,14 +577,6 @@ void save_doll_file(FILE *dollf) tilep_print_parts(fbuf, result.parts, true); fprintf(dollf, "%s\n", fbuf); -// const coord_def c = you.pos(); -// int feat = tileidx_feature(grd(c), c.x, c.y); -// if (feat == TILE_FLOOR_NORMAL) -// feat = env.tile_flv(c).floor; -// else if (feat == TILE_WALL_NORMAL) -// feat = env.tile_flv(c).wall; -// fprintf(dollf, "floor=%d\n", feat); - if (you.attribute[ATTR_HELD] > 0) fprintf(dollf, "net\n"); } |