summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tile2.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-09 22:21:30 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-09 22:21:30 +0000
commit58b28498325bbe63b85c37caa0d80357f87273a8 (patch)
tree2f6c0c950d9f7fe324562c162da435d030c6daf9 /crawl-ref/source/tile2.cc
parentbeb6500245eff6f70e18f278f199bf2060fb73b3 (diff)
downloadcrawl-ref-58b28498325bbe63b85c37caa0d80357f87273a8.tar.gz
crawl-ref-58b28498325bbe63b85c37caa0d80357f87273a8.zip
Deactivate the minimap in labyrinths since it gave away information
about placement on the map and also looked a bit odd. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8365 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tile2.cc')
-rw-r--r--crawl-ref/source/tile2.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/tile2.cc b/crawl-ref/source/tile2.cc
index dc6eb07898..a4f5386eff 100644
--- a/crawl-ref/source/tile2.cc
+++ b/crawl-ref/source/tile2.cc
@@ -29,6 +29,13 @@ REVISION("$Rev$");
#include "tiles.h"
#include "transfor.h"
+// In a labyrinth, don't display the minimap.
+bool player_in_mini_mappable_area()
+{
+ return (player_in_mappable_area()
+ && you.level_type != LEVEL_LABYRINTH);
+}
+
void tile_default_flv(level_area_type lev, branch_type br, tile_flavour &flv)
{
flv.wall = TILE_WALL_NORMAL;