summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-25 07:05:22 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-25 07:05:22 +0000
commitc0d2b0bfbdb1d6737aa7cf76eb557994afc5972e (patch)
tree5edded9c0cc1790076cbf58050161b3609e255a4 /crawl-ref/source/dungeon.cc
parent3dc1f2ac4de088e09f40cde0df7d039f09e6e181 (diff)
downloadcrawl-ref-c0d2b0bfbdb1d6737aa7cf76eb557994afc5972e.tar.gz
crawl-ref-c0d2b0bfbdb1d6737aa7cf76eb557994afc5972e.zip
[1868908] Fixed undiscovered traps being a different colour from surrounding coloured floor.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3326 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r--crawl-ref/source/dungeon.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index 91768a1fee..e997931c82 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -379,7 +379,9 @@ static void dgn_map_colour_fixup()
for (int y = Y_BOUND_1; y <= Y_BOUND_2; ++y)
for (int x = X_BOUND_1; x <= X_BOUND_2; ++x)
if (dcgrid[x][y].colour != BLACK
- && grd[x][y] != dcgrid[x][y].feature)
+ && grd[x][y] != dcgrid[x][y].feature
+ && (grd[x][y] != DNGN_UNDISCOVERED_TRAP
+ || dcgrid[x][y].feature != DNGN_FLOOR))
{
env.grid_colours[x][y] = BLACK;
}