diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-11-03 21:56:59 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-11-05 05:14:15 +0100 |
commit | e9ffe704a2bdd1ef3475b72759a7715bc0319f25 (patch) | |
tree | 0ff6b5b4b4aac7ffc426faf76635f4b303569ada /crawl-ref/source/actor-los.cc | |
parent | 672275374d2e1762a9d5b8a65d5de87a7b3dc6ed (diff) | |
download | crawl-ref-e9ffe704a2bdd1ef3475b72759a7715bc0319f25.tar.gz crawl-ref-e9ffe704a2bdd1ef3475b72759a7715bc0319f25.zip |
Drop an always true check.
In a virtual method, you can be quite certain we're of the correct type.
Diffstat (limited to 'crawl-ref/source/actor-los.cc')
-rw-r--r-- | crawl-ref/source/actor-los.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/actor-los.cc b/crawl-ref/source/actor-los.cc index 93079839fb..00b035a545 100644 --- a/crawl-ref/source/actor-los.cc +++ b/crawl-ref/source/actor-los.cc @@ -25,7 +25,7 @@ bool player::see_cell(const coord_def &p) const { if (!map_bounds(p)) return false; // Players can't see (-1,-1) but maybe can see (0,0). - if (crawl_state.game_is_arena() && is_player()) + if (crawl_state.game_is_arena()) return true; if (!in_bounds(pos())) return false; // A non-arena player at (0,0) can't see anything. |