diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-12-17 17:05:58 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-12-17 17:05:58 +0100 |
commit | 5eb6eed0aca7ce5f58dd5c51bbd406754b5491a7 (patch) | |
tree | bef8f6ab0d53a848e2711c3b5ef1251f435228a4 | |
parent | 7ff0bb74bc7db7dab1c33c5ec5724a882f836ea1 (diff) | |
download | crawl-ref-5eb6eed0aca7ce5f58dd5c51bbd406754b5491a7.tar.gz crawl-ref-5eb6eed0aca7ce5f58dd5c51bbd406754b5491a7.zip |
Don't draw anything but features on map boundary.
This should fix the shop inventories being visible in open sea.
-rw-r--r-- | crawl-ref/source/show.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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); |