center of Sanctuary is outside of the area being preserved during the shift, in which case get rid of it.
When doing an Abyss teleport into a totally new Abyss area remove sanctuary so the player can lay down a new on immediately, since the old one will be completely gone.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6316 c06c8d41-db1a-0410-9941-cceddc491573
23KINGGZGEVCKOXZQAKJHHCEF7XOJCAJTQT7VEDSS55YMYQM3Z4AC
// If sanctuary center is outside of preserved area then just get
// rid of it.
if (env.sanctuary_time > 0 && sanct_pos == coord_def(0, 0))
{
remove_sanctuary(false);
coord_def pos;
for (pos.x = 0; pos.x < LOS_DIAMETER; pos.x++)
for (pos.y = 0; pos.y < LOS_DIAMETER; pos.y++)
{
if (fprops(pos) == FPROP_SANCTUARY_1
|| fprops(pos) == FPROP_SANCTUARY_2)
{
fprops(pos) = FPROP_NONE;
}
}
}