diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-06-07 21:24:43 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-06-07 21:24:43 +0000 |
commit | 6cd783423bef2d290172930c770c3f22e8e127ad (patch) | |
tree | bbb6d8fde994d94c945d4264fb053675cb28d7c5 /crawl-ref/source/view.cc | |
parent | 22a9bad294c44f6dd86faea04e1b00ea7c6e31d6 (diff) | |
download | crawl-ref-6cd783423bef2d290172930c770c3f22e8e127ad.tar.gz crawl-ref-6cd783423bef2d290172930c770c3f22e8e127ad.zip |
* Fix double prompts for inscription warnings when clicking on the tiles
inventory.
* Change exclusions from buggy los back to full radius, so as not to
delay the release any further.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9916 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r-- | crawl-ref/source/view.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index 4cbd7f586e..9eeb3c1a86 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -2823,7 +2823,8 @@ int num_feats_between(const coord_def& source, const coord_def& target, // done by updating with a second array. void losight(env_show_grid &sh, feature_grid &gr, const coord_def& center, - bool clear_walls_block, bool ignore_clouds) + bool clear_walls_block, bool ignore_clouds, + bool full_radius) { raycast(); const int x_p = center.x; @@ -2835,7 +2836,7 @@ void losight(env_show_grid &sh, // clear out sh sh.init(0); - if (crawl_state.arena || crawl_state.arena_suspended) + if (full_radius || crawl_state.arena || crawl_state.arena_suspended) { for (int y = -ENV_SHOW_OFFSET; y <= ENV_SHOW_OFFSET; ++y) for (int x = -ENV_SHOW_OFFSET; x <= ENV_SHOW_OFFSET; ++x) |