diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-21 00:56:46 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-21 00:56:46 +0000 |
commit | 04236d16dd20c8b2b1ba4ab93c3a7df41f03c7a6 (patch) | |
tree | ae5adf68a6d7bb42a8a670a3fce164166ef673bb /crawl-ref/source/mon-util.cc | |
parent | 6bdaed8ba8c41113068be0d1b347ea074493c134 (diff) | |
download | crawl-ref-04236d16dd20c8b2b1ba4ab93c3a7df41f03c7a6.tar.gz crawl-ref-04236d16dd20c8b2b1ba4ab93c3a7df41f03c7a6.zip |
Fix compilation.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6021 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r-- | crawl-ref/source/mon-util.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 127b540b05..43e7046512 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -5057,7 +5057,7 @@ static bool _prepare_del_ench(monsters* mon, const mon_enchant &me) continue; if (in_bounds(pos) && mgrd(pos) == NON_MONSTER - && monster_can_submerge(mons, grd(pos))) + && monster_can_submerge(mon, grd(pos))) { if (one_chance_in(++okay_squares)) target_square = pos; @@ -5066,8 +5066,8 @@ static bool _prepare_del_ench(monsters* mon, const mon_enchant &me) if (okay_squares > 0) { - int mnum = mgrd(mons->pos()); - mgrd(mons->pos()) = NON_MONSTER; + int mnum = mgrd(mon->pos()); + mgrd(mon->pos()) = NON_MONSTER; mgrd(target_square) = mnum; mon->x = target_square.x; @@ -5090,7 +5090,7 @@ static bool _prepare_del_ench(monsters* mon, const mon_enchant &me) continue; if (in_bounds(pos) && mgrd(pos) == NON_MONSTER - && monster_habitable_grid(mons, grd(pos)) + && monster_habitable_grid(mon, grd(pos)) && trap_type_at_xy(pos.x, pos.y) == NUM_TRAPS) { if (one_chance_in(++okay_squares)) @@ -5100,8 +5100,8 @@ static bool _prepare_del_ench(monsters* mon, const mon_enchant &me) if (okay_squares > 0) { - int mnum = mgrd(mons->pos()); - mgrd(mons->pos()) = NON_MONSTER; + int mnum = mgrd(mon->pos()); + mgrd(mon->pos()) = NON_MONSTER; mgrd(target_square) = mnum; mons->x = target_square.x; |