summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-03 05:08:21 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-03 05:08:21 +0000
commit30e35359e60798c94b5fa3720a1b7886e81f34dc (patch)
tree9b35abb0c75a687a65cbf31d63b1fbffb40cdff9 /crawl-ref/source/view.cc
parentfc2076a71747b72a92d33ba3760adc0eb8477f13 (diff)
downloadcrawl-ref-30e35359e60798c94b5fa3720a1b7886e81f34dc.tar.gz
crawl-ref-30e35359e60798c94b5fa3720a1b7886e81f34dc.zip
Finally implement halo coloring. Currently, all areas that you can move
over will be turned yellow. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4057 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r--crawl-ref/source/view.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index 623f27ac10..5a329c76e6 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -65,6 +65,7 @@
#include "skills.h"
#include "skills2.h"
#include "stuff.h"
+#include "spells3.h"
#include "spells4.h"
#include "stash.h"
#include "tiles.h"
@@ -446,6 +447,12 @@ static void _get_symbol( int x, int y,
x, y, static_cast<dungeon_feature_type>(object),
*colour, fdef.em_colour | colmask);
}
+
+ if (object < NUM_REAL_FEATURES
+ && inside_halo(x,y) && object >= DNGN_MINMOVE)
+ {
+ *colour = YELLOW | colmask;
+ }
}
// Note anything we see that's notable