Implemented MEET_OTHER
authorPerttu Ahola <celeron55@gmail.com>
Tue, 16 Aug 2011 09:23:19 +0000 (12:23 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 16 Aug 2011 09:23:19 +0000 (12:23 +0300)
src/server.cpp

index 383381c9fc824f4dfe6ec28fd418f6ff6e71024c..5b657bc2efe8c51853798ad840c5fca7ccdd9895 100644 (file)
@@ -1732,9 +1732,15 @@ void Server::AsyncRunStep()
                        }
                        else if(event->type == MEET_OTHER)
                        {
+                               dstream<<"Server: MEET_OTHER"<<std::endl;
                                prof.add("MEET_OTHER", 1);
-                               dstream<<"WARNING: Server: MEET_OTHER not implemented"
-                                               <<std::endl;
+                               for(core::map<v3s16, bool>::Iterator
+                                               i = event->modified_blocks.getIterator();
+                                               i.atEnd()==false; i++)
+                               {
+                                       v3s16 p = i.getNode()->getKey();
+                                       setBlockNotSent(p);
+                               }
                        }
                        else
                        {