From 47b88fd8a6f6b4081e5569d6d0017e1353f79c9d Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sun, 8 Nov 2009 10:25:30 +0100 Subject: Generalize feature colouring to use any actor halo. This may be too expensive with haloers() implemented as now. --- crawl-ref/source/showsymb.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/showsymb.cc') diff --git a/crawl-ref/source/showsymb.cc b/crawl-ref/source/showsymb.cc index 25bdf8e4d5..332c283a37 100644 --- a/crawl-ref/source/showsymb.cc +++ b/crawl-ref/source/showsymb.cc @@ -15,6 +15,7 @@ #include "colour.h" #include "env.h" #include "envmap.h" +#include "halo.h" #include "mon-util.h" #include "monster.h" #include "options.h" @@ -106,7 +107,7 @@ static unsigned short _feat_colour(const coord_def &where, if (feat >= DNGN_FLOOR_MIN && feat <= DNGN_FLOOR_MAX || feat == DNGN_UNDISCOVERED_TRAP) { - if (you.halo_contains(where)) + if (!haloers(where).empty()) { if (silenced(where)) colour = LIGHTCYAN; -- cgit v1.2.3-54-g00ecf