Guest User

Untitled

a guest
Jun 25th, 2015
223
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while(m_queue.size()) {
  2. QueuedMinimapUpdate *q = m_queue.pop();
  3. std::map<v3s16, MinimapMapblock *>::iterator it;
  4. it = m_blocks_cache.find(q->p);
  5. if (q->data) {
  6. m_blocks_cache[q->p] = q->data;
  7. } else if (it != m_blocks_cache.end()) {
  8. if (it->second) {
  9. delete it->second;
  10. }
  11. m_blocks_cache.erase(it);
  12. }
  13. }
RAW Paste Data