Skip to content

Commit

Permalink
Remove Server::m_ignore_map_edit_events (noop)
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzhul committed Jun 15, 2018
1 parent 09eea42 commit 2bec28f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
4 changes: 1 addition & 3 deletions src/server.cpp
Expand Up @@ -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);
Expand Down
6 changes: 0 additions & 6 deletions src/server.h
Expand Up @@ -622,12 +622,6 @@ class Server : public con::PeerHandler, public MapEventReceiver,
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
Expand Down

0 comments on commit 2bec28f

Please sign in to comment.