diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2018-06-15 08:41:40 +0200 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2018-06-15 08:41:50 +0200 |
commit | 2bec28f4621fee5ff72a0edc8065d33c2bcd1d48 (patch) | |
tree | a8363190b00de758f111e552a4923ebeac9c671f | |
parent | 09eea421a9481eba94e89508152f672cebc0ce9b (diff) | |
download | minetest-2bec28f4621fee5ff72a0edc8065d33c2bcd1d48.tar.gz minetest-2bec28f4621fee5ff72a0edc8065d33c2bcd1d48.tar.bz2 minetest-2bec28f4621fee5ff72a0edc8065d33c2bcd1d48.zip |
Remove Server::m_ignore_map_edit_events (noop)
-rw-r--r-- | src/server.cpp | 4 | ||||
-rw-r--r-- | src/server.h | 6 |
2 files changed, 1 insertions, 9 deletions
diff --git a/src/server.cpp b/src/server.cpp index 67910e53a..09b3f2c40 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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); diff --git a/src/server.h b/src/server.h index 02c69e491..c51686650 100644 --- a/src/server.h +++ b/src/server.h @@ -623,12 +623,6 @@ private: */ 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 generated area, as it will be sent anyway. |