git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6020 c06c8d41-db1a-0410-9941-cceddc491573
FVEPL7AUMO6QPLVPGQVZTPSI5ITBIW6Q7CYUWQYGVNUHKTK5FQHAC
AV3TMWHWB3XBXQCT34UPMZBSIIKVXIGWQPNEFU4CZSBS3ZOF2CUQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
X5WLJCJVW55SXZVP7IKP7ADCJIGNKN4PKAXFECVR6TNK7XSMZR7QC
static bool _prepare_del_ench(monsters* mons, const mon_enchant &me)
static bool _prepare_del_ench(monsters* mon, const mon_enchant &me)
return true;
return (true);
if (mons->pos() != you.pos()) return true;
if (mons->pos() != you.pos())
if (mon->pos() != you.pos()) return (true);
if (mon->pos() != you.pos())
for (pos.x = you.x_pos - 1; pos.x <= you.x_pos + 1; pos.x++) for (pos.y = you.y_pos - 1; pos.y <= you.y_pos + 1; pos.y++)
for (pos.x = you.x_pos - 1; pos.x <= you.x_pos + 1; pos.x++)
for (pos.y = you.y_pos - 1; pos.y <= you.y_pos + 1; pos.y++)
for (pos.x = you.x_pos - 1; pos.x <= you.x_pos + 1; ++pos.x) for (pos.y = you.y_pos - 1; pos.y <= you.y_pos + 1; ++pos.y)
for (pos.x = you.x_pos - 1; pos.x <= you.x_pos + 1; ++pos.x)
for (pos.y = you.y_pos - 1; pos.y <= you.y_pos + 1; ++pos.y)
mons->x = target_square.x; mons->y = target_square.y;
mons->x = target_square.x;
mons->y = target_square.y;
mon->x = target_square.x; mon->y = target_square.y;
mon->x = target_square.x;
mon->y = target_square.y;
if ( monster_can_submerge(mons, grd( mons->pos() )) ) return false;
if ( monster_can_submerge(mons, grd( mons->pos() )) )
return false;
if (monster_can_submerge(mon, grd(mon->pos()))) return (false);
if (monster_can_submerge(mon, grd(mon->pos())))
return (false);
return ( true );