diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-08-19 11:29:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-19 11:29:46 +0200 |
commit | de4c2e4250d3071a8de7841a1cb3a63af67c63f3 (patch) | |
tree | aa959d1f450ebf25c7be6b4e088e50e15bf4c9ee /src/map.h | |
parent | b82884aa62fc0b00bbaef6c31cde095d9ed6f72f (diff) | |
download | minetest-de4c2e4250d3071a8de7841a1cb3a63af67c63f3.tar.gz minetest-de4c2e4250d3071a8de7841a1cb3a63af67c63f3.tar.bz2 minetest-de4c2e4250d3071a8de7841a1cb3a63af67c63f3.zip |
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
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -349,7 +349,7 @@ public: - Check disk (doesn't load blocks) - Create blank one */ - ServerMapSector *createSector(v2s16 p); + MapSector *createSector(v2s16 p); bool saoPositionOverLimit(const v3f &p); @@ -418,18 +418,6 @@ public: MapgenParams *getMapgenParams(); - /*void saveChunkMeta(); - void loadChunkMeta();*/ - - // The sector mutex should be locked when calling most of these - - // This only saves sector-specific data such as the heightmap - // (no MapBlocks) - // DEPRECATED? Sectors have no metadata anymore. - void saveSectorMeta(ServerMapSector *sector); - MapSector* loadSectorMeta(std::string dirname, bool save_after_load); - bool loadSectorMeta(v2s16 p2d); - bool saveBlock(MapBlock *block); static bool saveBlock(MapBlock *block, MapDatabase *db); // This will generate a sector with getSector if not found. |