From 5eb6eed0aca7ce5f58dd5c51bbd406754b5491a7 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Thu, 17 Dec 2009 17:05:58 +0100 Subject: Don't draw anything but features on map boundary. This should fix the shop inventories being visible in open sea. --- crawl-ref/source/show.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crawl-ref/source/show.cc b/crawl-ref/source/show.cc index 8205d55b99..f6fc5cad9e 100644 --- a/crawl-ref/source/show.cc +++ b/crawl-ref/source/show.cc @@ -6,6 +6,7 @@ #include "areas.h" #include "cloud.h" +#include "coord.h" #include "coordit.h" #include "env.h" #include "exclude.h" @@ -374,6 +375,11 @@ void show_def::update_at(const coord_def &gp, const coord_def &ep) // The sequence is grid, items, clouds, monsters. _update_feat_at(gp, ep); + // If there's items on the boundary (shop inventory), + // we don't show them. + if (!in_bounds(gp)) + return; + _update_item_at(gp, ep); const int cloud = env.cgrid(gp); -- cgit v1.2.3-54-g00ecf