Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BEFORE:
- void Client::removeNode(v3s16 p)
- {
- std::map<v3s16, MapBlock*> modified_blocks;
- try
- {
- m_env.getMap().removeNodeAndUpdate(p, modified_blocks);
- }
- catch(InvalidPositionException &e)
- {
- }
- // add urgent task to update the modified node
- addUpdateMeshTaskForNode(p, false, true);
- for(std::map<v3s16, MapBlock * >::iterator
- i = modified_blocks.begin();
- i != modified_blocks.end(); ++i)
- {
- addUpdateMeshTaskWithEdge(i->first);
- }
- }
- AFTER:
- void Client::removeNode(v3s16 p)
- {
- std::map<v3s16, MapBlock*> modified_blocks;
- try
- {
- m_env.getMap().removeNodeAndUpdate(p, modified_blocks);
- }
- catch(InvalidPositionException &e)
- {
- }
- for(std::map<v3s16, MapBlock * >::iterator
- i = modified_blocks.begin();
- i != modified_blocks.end(); ++i)
- {
- addUpdateMeshTask(i->first, false, false);
- }
- // add urgent task to update the modified node
- addUpdateMeshTaskForNode(p, false, true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement