diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 16:29:24 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 17:01:14 +0100 |
commit | 6bdaccfb8c194bfa0bb0b6769babc3710d570b45 (patch) | |
tree | dce34efa2202539e5a8ea704cdaa46b17fd1969c /crawl-ref/source/spells3.cc | |
parent | 19c3c95b8dba465b3efacf8eb96798af69c170fc (diff) | |
download | crawl-ref-6bdaccfb8c194bfa0bb0b6769babc3710d570b45.tar.gz crawl-ref-6bdaccfb8c194bfa0bb0b6769babc3710d570b45.zip |
Move see_cell_no_trans into player.
Also collect actor/player LOS code in actor-los.cc.
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r-- | crawl-ref/source/spells3.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index a15b02fd32..35365fd302 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -1062,17 +1062,11 @@ int animate_dead(actor *caster, int pow, beh_type beha, unsigned short hitting, { UNUSED(pow); - // Use an alternate LOS grid, based on the caster's LOS. - env_show_grid losgrid; - if (caster->atype() != ACT_PLAYER) - losight(losgrid, caster->pos(), opc_no_trans); - int number_raised = 0; int number_seen = 0; radius_iterator ri(caster->pos(), 6, true, true, false, - caster->atype() == ACT_PLAYER ? &env.no_trans_show - : &losgrid); + &caster->get_los_no_trans()); // Sweep all squares in LOS. for (; ri; ++ri) |