mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
ServerMap saving: cleanups (#6274)
* remove sector meta loading/saving from files which targets dead code (differs_from_disk is always empty) * this remove empty ServerMapSector and ClientMapSector, remove MapSector childs
This commit is contained in:
parent
b82884aa62
commit
de4c2e4250
5 changed files with 23 additions and 470 deletions
|
@ -64,20 +64,14 @@ MapSector * ClientMap::emergeSector(v2s16 p2d)
|
|||
{
|
||||
DSTACK(FUNCTION_NAME);
|
||||
// Check that it doesn't exist already
|
||||
try{
|
||||
try {
|
||||
return getSectorNoGenerate(p2d);
|
||||
}
|
||||
catch(InvalidPositionException &e)
|
||||
{
|
||||
} catch(InvalidPositionException &e) {
|
||||
}
|
||||
|
||||
// Create a sector
|
||||
ClientMapSector *sector = new ClientMapSector(this, p2d, m_gamedef);
|
||||
|
||||
{
|
||||
//MutexAutoLock lock(m_sector_mutex); // Bulk comment-out
|
||||
m_sectors[p2d] = sector;
|
||||
}
|
||||
MapSector *sector = new MapSector(this, p2d, m_gamedef);
|
||||
m_sectors[p2d] = sector;
|
||||
|
||||
return sector;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue