projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2830095
)
A small fix to unnecessary saving of map metadata
author
Perttu Ahola
<celeron55@gmail.com>
Mon, 25 Apr 2011 22:13:30 +0000
(
01:13
+0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Mon, 25 Apr 2011 22:13:30 +0000
(
01:13
+0300)
src/map.cpp
patch
|
blob
|
history
diff --git
a/src/map.cpp
b/src/map.cpp
index a5e2304197d074ecb2980a0db1e8f31cc6ddf530..4c0047a1037ab02cdf25410e36e13a333f2ad744 100644
(file)
--- 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()