diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-03-22 22:53:13 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-03-22 22:54:42 +0100 |
commit | b3339e87d0690ae7d8d42dc945134b847c8ffce7 (patch) | |
tree | bdff67323bb17447a5b3a31f3ed7b0765deb1af4 /crawl-ref/source/los.cc | |
parent | c9e50f07992f1d65a9b4d058d1d2cf4c82352f41 (diff) | |
download | crawl-ref-b3339e87d0690ae7d8d42dc945134b847c8ffce7.tar.gz crawl-ref-b3339e87d0690ae7d8d42dc945134b847c8ffce7.zip |
Replace "atype() == ACT_MONSTER" with "is_monster()" -- half the length.
Could probably just make it !is_player() instead, too.
Diffstat (limited to 'crawl-ref/source/los.cc')
-rw-r--r-- | crawl-ref/source/los.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/los.cc b/crawl-ref/source/los.cc index acf65de4db..b907dfcab3 100644 --- a/crawl-ref/source/los.cc +++ b/crawl-ref/source/los.cc @@ -934,7 +934,7 @@ static bool _mons_block_sight(const monster* mons) void los_actor_moved(const actor* act, const coord_def& oldpos) { - if (act->atype() == ACT_MONSTER && _mons_block_sight(act->as_monster())) + if (act->is_monster() && _mons_block_sight(act->as_monster())) { invalidate_los_around(oldpos); invalidate_los_around(act->pos()); |