summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-05 20:28:15 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-05 20:28:15 +0000
commitc9d385badbb85a615bf748908eabca4e10268341 (patch)
tree15912adb0dc93840e513c4c235b7bc37d77cb1f9 /crawl-ref/source/view.cc
parent15fa09f801a894a39a7c0949c5ed4c496b4038e4 (diff)
downloadcrawl-ref-c9d385badbb85a615bf748908eabca4e10268341.tar.gz
crawl-ref-c9d385badbb85a615bf748908eabca4e10268341.zip
Fix 2726027: Warpwright card being broken.
Fix 2731677: Sleeping "patrolling" monsters being unwakable. Fix 2729898: Debugging markers on the level map showing up in nonwizmode games. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9586 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r--crawl-ref/source/view.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index e4a8e60ba9..e1e70b0768 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -685,8 +685,11 @@ screen_buffer_t colour_code_map( const coord_def& p, bool item_colour,
return (BLACK);
#ifdef WIZARD
- if (travel_colour && testbits(env.map(p).property, FPROP_HIGHLIGHT))
+ if (travel_colour && you.wizard
+ && testbits(env.map(p).property, FPROP_HIGHLIGHT))
+ {
return (LIGHTGREEN);
+ }
#endif
dungeon_feature_type grid_value = grd(p);