fixing move(It, It)

This commit is contained in:
Pedro Machado Manhaes de Castro 2008-02-22 14:05:30 +00:00
parent 418185aa44
commit a79f32b497
1 changed files with 3 additions and 3 deletions

View File

@ -186,9 +186,9 @@ public:
std::pair<Vertex_handle, Point> pp = to_move.front();
to_move.pop_front();
if(!move(pp.first, pp.second)) {
if(blocked[pp.first] == 3) break;
else if(blocked[pp.first] == 2) blocked = true;
blocked[pp.first]++;
if(hash[pp.first] == 3) break;
else if(hash[pp.first] == 2) blocked = true;
hash[pp.first]++;
to_move.push_back(pp);
}
}