diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-25 03:07:49 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-25 03:07:49 +0000 |
commit | 965a5bf3f8f5d40b210468b2e9f4857a05f8b181 (patch) | |
tree | 67015f5a69f3400b4d9ac5a12807c999a4a7b162 /crawl-ref/source/travel.cc | |
parent | 91d30564b7c390b12eecfba759ad893b67217797 (diff) | |
download | crawl-ref-965a5bf3f8f5d40b210468b2e9f4857a05f8b181.tar.gz crawl-ref-965a5bf3f8f5d40b210468b2e9f4857a05f8b181.zip |
Partially fixed [1921769] Minimap exclude region sometimes not shown.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3866 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r-- | crawl-ref/source/travel.cc | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc index ae779e45d9..5655bc56c7 100644 --- a/crawl-ref/source/travel.cc +++ b/crawl-ref/source/travel.cc @@ -248,12 +248,12 @@ bool is_exclude_root(const coord_def &p) static void tile_exclude_gmap_update(const coord_def p) { 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); - } + 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 @@ -291,9 +291,9 @@ void clear_excludes() #ifdef USE_TILE for (int i = curr_excludes.size()-1; i >= 0; i--) toggle_exclude(curr_excludes[i].pos); -#else - curr_excludes.clear(); #endif + curr_excludes.clear(); + if (can_travel_interlevel()) { LevelInfo &li = travel_cache.get_level_info(level_id::current()); @@ -314,6 +314,10 @@ void cycle_exclude_radius(const coord_def &p) case 4 : curr_radius = LOS_RADIUS; break; } +#ifdef USE_TILE + tile_exclude_gmap_update(p); +#endif + if (can_travel_interlevel()) { LevelInfo &li = travel_cache.get_level_info(level_id::current()); |