Remove Server::m_ignore_map_edit_events (noop)
authorLoic Blot <loic.blot@unix-experience.fr>
Fri, 15 Jun 2018 06:41:40 +0000 (08:41 +0200)
committerLoic Blot <loic.blot@unix-experience.fr>
Fri, 15 Jun 2018 06:41:50 +0000 (08:41 +0200)
src/server.cpp
src/server.h

index 67910e53aad4152e35428500c50f3470c2ad5f0a..09b3f2c4093c7dc24adedec756e05d3be9a83a7e 100644 (file)
@@ -1184,9 +1184,7 @@ void Server::setTimeOfDay(u32 time)
 
 void Server::onMapEditEvent(MapEditEvent *event)
 {
-       if(m_ignore_map_edit_events)
-               return;
-       if(m_ignore_map_edit_events_area.contains(event->getArea()))
+       if (m_ignore_map_edit_events_area.contains(event->getArea()))
                return;
        MapEditEvent *e = event->clone();
        m_unsent_map_edit_queue.push(e);
index 02c69e4914f1059ca37a6e67f3daf837d66428f6..c51686650c731aa8ba6a2aac076cce85865dcacb 100644 (file)
@@ -622,12 +622,6 @@ private:
                This is behind m_env_mutex
        */
        std::queue<MapEditEvent*> m_unsent_map_edit_queue;
-       /*
-               Set to true when the server itself is modifying the map and does
-               all sending of information by itself.
-               This is behind m_env_mutex
-       */
-       bool m_ignore_map_edit_events = false;
        /*
                If a non-empty area, map edit events contained within are left
                unsent. Done at map generation time to speed up editing of the