Skip to content

Commit 2bec28f

Browse files
committedJun 15, 2018
Remove Server::m_ignore_map_edit_events (noop)
1 parent 09eea42 commit 2bec28f

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed
 

Diff for: ‎src/server.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -1184,9 +1184,7 @@ void Server::setTimeOfDay(u32 time)
11841184

11851185
void Server::onMapEditEvent(MapEditEvent *event)
11861186
{
1187-
if(m_ignore_map_edit_events)
1188-
return;
1189-
if(m_ignore_map_edit_events_area.contains(event->getArea()))
1187+
if (m_ignore_map_edit_events_area.contains(event->getArea()))
11901188
return;
11911189
MapEditEvent *e = event->clone();
11921190
m_unsent_map_edit_queue.push(e);

Diff for: ‎src/server.h

-6
Original file line numberDiff line numberDiff line change
@@ -622,12 +622,6 @@ class Server : public con::PeerHandler, public MapEventReceiver,
622622
This is behind m_env_mutex
623623
*/
624624
std::queue<MapEditEvent*> m_unsent_map_edit_queue;
625-
/*
626-
Set to true when the server itself is modifying the map and does
627-
all sending of information by itself.
628-
This is behind m_env_mutex
629-
*/
630-
bool m_ignore_map_edit_events = false;
631625
/*
632626
If a non-empty area, map edit events contained within are left
633627
unsent. Done at map generation time to speed up editing of the

0 commit comments

Comments
 (0)
Please sign in to comment.