summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abyss.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-12 19:01:03 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-12 19:01:03 +0000
commit71f58563eac0fc0508dd65e085b0fcd98b59fab9 (patch)
treef42c4ce2a6c3c9513d53f27ec72617652410ef3a /crawl-ref/source/abyss.cc
parent6dce7d753be877ebde49c4fe52b32029faac0a82 (diff)
downloadcrawl-ref-71f58563eac0fc0508dd65e085b0fcd98b59fab9.tar.gz
crawl-ref-71f58563eac0fc0508dd65e085b0fcd98b59fab9.zip
Call mons_clear_trapping_net() in monsters::moveto(), so it shouldn't
be needed in other places. Should fix [2456879]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9051 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/abyss.cc')
-rw-r--r--crawl-ref/source/abyss.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/abyss.cc b/crawl-ref/source/abyss.cc
index 38c9c782bd..352caeb7e2 100644
--- a/crawl-ref/source/abyss.cc
+++ b/crawl-ref/source/abyss.cc
@@ -471,7 +471,7 @@ void area_shift(void)
_abyss_lose_monster( menv[ mgrd(*ri) ] );
}
- // Shift all monsters & items to new area.
+ // Shift all monsters and items to new area.
for (radius_iterator ri(you.pos(), 10, true, false); ri; ++ri)
{
const coord_def newpos = abyss_center + *ri - you.pos();
@@ -488,10 +488,10 @@ void area_shift(void)
ri->x, ri->y, newpos.x, newpos.y);
}
#endif
- move_item_stack_to_grid( *ri, newpos );
+ move_item_stack_to_grid(*ri, newpos);
// Move monster.
- if ( mgrd(*ri) != NON_MONSTER )
+ if (mgrd(*ri) != NON_MONSTER)
{
menv[mgrd(*ri)].moveto(newpos);
mgrd(newpos) = mgrd(*ri);