git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2499 c06c8d41-db1a-0410-9941-cceddc491573
NXLDJFG7FPL7ZADEBSY3DLDIBLZ7I4JV3NPRGFQYPF25BXWIK6CQC
// Never use rock stairs as the last leg of the trip, since
// that will leave the player unable to retrace their path.
// This does not apply if we have a destination with a specific
// position on the target level travel wants to get to.
if (grid_is_rock_stair(si.grid)
&& target.pos.x == -1
&& dest.id == target.id)
{
continue;
}