diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 10:25:30 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 10:25:30 +0100 |
commit | 47b88fd8a6f6b4081e5569d6d0017e1353f79c9d (patch) | |
tree | c533a7a2c453b5731c4daac74af91a703e42ab33 /crawl-ref/source/showsymb.cc | |
parent | 0ccae520b8691c5bb0188449c7c53b8e4f6d130c (diff) | |
download | crawl-ref-47b88fd8a6f6b4081e5569d6d0017e1353f79c9d.tar.gz crawl-ref-47b88fd8a6f6b4081e5569d6d0017e1353f79c9d.zip |
Generalize feature colouring to use any actor halo.
This may be too expensive with haloers() implemented as now.
Diffstat (limited to 'crawl-ref/source/showsymb.cc')
-rw-r--r-- | crawl-ref/source/showsymb.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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; |