Perfection cannot be reached, since the travel cache may be wrong about where a staircase leads.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@479 c06c8d41-db1a-0410-9941-cceddc491573
XP3TQISCLEST3ZNTF6OZ6FYMHIIPMVTNVBIIG47LA5PS7J234SQAC
}
}
void update_excludes()
{
// Sanity checks
if (you.level_type == LEVEL_LABYRINTH || you.level_type == LEVEL_ABYSS)
return;
for (int i = curr_excludes.size() - 1; i >= 0; --i)
{
int x = curr_excludes[i].x,
y = curr_excludes[i].y;
if (!env.map[x - 1][y - 1])
curr_excludes.erase( curr_excludes.begin() + i );