diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-30 20:43:15 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-30 20:43:15 +0000 |
commit | f116902db8e7f917df91a3a1e775cc43cf7dd47a (patch) | |
tree | 8ce9e5477928410e415ac3244babeed341a40f09 /crawl-ref/source/travel.cc | |
parent | a932874b76f5657f943d879c2a0b36dab2cc3f68 (diff) | |
download | crawl-ref-f116902db8e7f917df91a3a1e775cc43cf7dd47a.tar.gz crawl-ref-f116902db8e7f917df91a3a1e775cc43cf7dd47a.zip |
Fix 1921769: Exclusion squares on the tiles minimap sometimes
not being updated.
Also add yet another minimap colour option for the centre of an
exclusion (defaults to darkblue).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3958 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r-- | crawl-ref/source/travel.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc index 1a1363d7ea..d3315077c2 100644 --- a/crawl-ref/source/travel.cc +++ b/crawl-ref/source/travel.cc @@ -251,13 +251,14 @@ bool is_exclude_root(const coord_def &p) // update Gmap for squares surrounding exclude centre static void tile_exclude_gmap_update(const coord_def p) { - for (int x = -8; x < 8; x++) - for (int y = -8; y < 8; y++) + for (int x = -8; x <= 8; x++) + for (int y = -8; y <= 8; y++) { int px = p.x+x, py = p.y+y; if (in_bounds(coord_def(px,py))) GmapUpdate(px, py, env.map[px][py].glyph(), true); } + GmapDisplay(p.x,p.y); } #endif |