diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-26 01:13:30 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-26 01:13:30 +0300 |
commit | 664eb4f7c58cf9d879e9435a207da2e5f80fe9bc (patch) | |
tree | dad0d3c8f908fc174f66ebd022580ec239d9569b /src | |
parent | 28300953667b6a44efb5be6b2c612993de060636 (diff) | |
download | minetest-664eb4f7c58cf9d879e9435a207da2e5f80fe9bc.tar.gz minetest-664eb4f7c58cf9d879e9435a207da2e5f80fe9bc.tar.bz2 minetest-664eb4f7c58cf9d879e9435a207da2e5f80fe9bc.zip |
A small fix to unnecessary saving of map metadata
Diffstat (limited to 'src')
-rw-r--r-- | src/map.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp index a5e230419..4c0047a10 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -4801,7 +4801,6 @@ void ServerMap::save(bool only_changed) if(only_changed == false || m_map_metadata_changed) { saveMapMeta(); - m_map_metadata_changed = false; } // Disable saving chunk metadata if chunks are disabled @@ -4985,6 +4984,7 @@ void ServerMap::saveMapMeta() os<<"[end_of_params]\n"; + m_map_metadata_changed = false; } void ServerMap::loadMapMeta() @@ -5072,6 +5072,8 @@ void ServerMap::saveChunkMeta() // Write chunk data chunk->serialize(os, version); } + + setChunksNonModified(); } void ServerMap::loadChunkMeta() |