1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Area-based MapEditEvent ignore and that put to use for on_generate too

This commit is contained in:
Perttu Ahola 2012-03-29 01:22:08 +03:00
parent 02c035c548
commit a6ca7eb29d
3 changed files with 82 additions and 8 deletions

View file

@ -823,6 +823,13 @@ private:
This is behind m_env_mutex
*/
bool m_ignore_map_edit_events;
/*
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.
This is behind m_env_mutex
*/
VoxelArea m_ignore_map_edit_events_area;
/*
If set to !=0, the incoming MapEditEvents are modified to have
this peed id as the disabled recipient