diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-12-04 04:53:55 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-12-05 16:23:46 +0100 |
commit | 3cfba31e6efa38025156ee5a3a0ea006c85b5b6b (patch) | |
tree | 1a26f470e0ffac5ed8135c18886051d2f9b1632e /crawl-ref/source/show.cc | |
parent | 9d7c2e8983cbe3e913a26016327e49e9bd189ca3 (diff) | |
download | crawl-ref-3cfba31e6efa38025156ee5a3a0ea006c85b5b6b.tar.gz crawl-ref-3cfba31e6efa38025156ee5a3a0ea006c85b5b6b.zip |
Indentation fixes.
Diffstat (limited to 'crawl-ref/source/show.cc')
-rw-r--r-- | crawl-ref/source/show.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/show.cc b/crawl-ref/source/show.cc index 94da81bd3e..7d53aac0d8 100644 --- a/crawl-ref/source/show.cc +++ b/crawl-ref/source/show.cc @@ -217,7 +217,7 @@ static show_item_type _item_to_show_code(const item_def &item) case OBJ_GOLD: return SHOW_ITEM_GOLD; case OBJ_DETECTED: return SHOW_ITEM_DETECTED; default: return SHOW_ITEM_ORB; // bad item character - } + } } static void _update_item_at(const coord_def &gp) @@ -499,11 +499,11 @@ void show_init(bool terrain_only) // emphasise(p) == true, but we optimise a bit. void show_update_emphasis() { - // The only thing that can change is that previously unknown - // stairs are now known. (see is_unknown_stair(), emphasise()) - LevelInfo& level_info = travel_cache.get_level_info(level_id::current()); - vector<stair_info> stairs = level_info.get_stairs(); - for (unsigned i = 0; i < stairs.size(); ++i) - if (stairs[i].destination.is_valid()) - env.map_knowledge(stairs[i].position).flags &= ~MAP_EMPHASIZE; + // The only thing that can change is that previously unknown + // stairs are now known. (see is_unknown_stair(), emphasise()) + LevelInfo& level_info = travel_cache.get_level_info(level_id::current()); + vector<stair_info> stairs = level_info.get_stairs(); + for (unsigned i = 0; i < stairs.size(); ++i) + if (stairs[i].destination.is_valid()) + env.map_knowledge(stairs[i].position).flags &= ~MAP_EMPHASIZE; } |