summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilesdl.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-11 00:41:28 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-11 00:41:28 +0000
commita84ce421489674dd1078dcf642011c8ef82b8cf3 (patch)
tree84a0f048e43b159f55761d447b70d32dd8bd3d93 /crawl-ref/source/tilesdl.cc
parentaece73f4451a17501468cae9df21daa6548432e1 (diff)
downloadcrawl-ref-a84ce421489674dd1078dcf642011c8ef82b8cf3.tar.gz
crawl-ref-a84ce421489674dd1078dcf642011c8ef82b8cf3.zip
Turning back on minimap for labyrinths, but fixing it so that it recenters during map rot, as if the forgotten squares were never seen. (Sorry, jpeg. If you can see it using 'X', I think you should be able to also see it on the minimap.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8404 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilesdl.cc')
-rw-r--r--crawl-ref/source/tilesdl.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/tilesdl.cc b/crawl-ref/source/tilesdl.cc
index a00edd2de6..c1db3c8064 100644
--- a/crawl-ref/source/tilesdl.cc
+++ b/crawl-ref/source/tilesdl.cc
@@ -1089,7 +1089,7 @@ void TilesFramework::redraw()
void TilesFramework::update_minimap(int gx, int gy)
{
- if (!player_in_mini_mappable_area())
+ if (!player_in_mappable_area())
return;
int object = env.map[gx][gy].object;
@@ -1150,6 +1150,11 @@ void TilesFramework::clear_minimap()
m_region_map->clear();
}
+void TilesFramework::update_minimap_bounds()
+{
+ m_region_map->update_bounds();
+}
+
static void _fill_item_info(InventoryTile &desc, const item_def &item)
{
desc.tile = tileidx_item(item);