if ( door != -1 && scan_room->exit[rev_dir[door]] != NULL
&& IS_SET(scan_room->exit[rev_dir[door]]->exit_info,EX_CLOSED) )
return;
if ( door != -1 && ch->in_room->exit[door] != NULL
&& IS_SET(ch->in_room->exit[door]->exit_info.EX_CLOSED))
return;
&& scan_room->exit[rev_door[door]]->u1.to_room == ch->in_room
// erase this element if it is value 10.
if (*it = 10)
it = L.erase(it); // continue proper iteration.
list<int> L;
std::list<int>::iterator iter;
// Populate our list with 0 through 15
for(int i = 0;i < 16;++i)
L.push_back(i);
// Span our unary tree.
for(iter = L.begin();iter != L.end();++iter) {
if (*iter == 1 || *iter == 10) // remove the element without corrupting list.
iter = L.erase(iter);
cout << *iter << endl;
}
list<int> L;
std::list<int>::iterator iter;
// Populate our list with 0 through 15
for(int i = 0;i < 16;++i)
L.push_back(i);
// Span our unary tree.
for(iter = L.begin();iter != L.end();++iter) {
if (*iter == 1 || *iter == 10) // remove the next element without corrupting list.
L.remove(*iter + 1);
cout << *iter << endl;
}
Now they're water boarding people. ;)
…not cool.