Remove Server::m_ignore_map_edit_events (noop)

This commit is contained in:
Loic Blot 2018-06-15 08:41:40 +02:00
parent 09eea421a9
commit 2bec28f462
No known key found for this signature in database
GPG Key ID: EFAA458E8C153987
2 changed files with 1 additions and 9 deletions

@ -1184,8 +1184,6 @@ void Server::setTimeOfDay(u32 time)
void Server::onMapEditEvent(MapEditEvent *event) 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; return;
MapEditEvent *e = event->clone(); MapEditEvent *e = event->clone();

@ -622,12 +622,6 @@ private:
This is behind m_env_mutex This is behind m_env_mutex
*/ */
std::queue<MapEditEvent*> m_unsent_map_edit_queue; 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 If a non-empty area, map edit events contained within are left
unsent. Done at map generation time to speed up editing of the unsent. Done at map generation time to speed up editing of the