aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars <larsh@apache.org>2020-11-25 17:16:41 -0800
committerlhofhansl <larsh@apache.org>2020-11-26 11:41:55 -0800
commitf1349be5422ab11b488309bee89fdcf868e860bb (patch)
tree235718cd9db7ef23b0449e984027a619c252d376 /src
parent8dc70ebb936277f740dffe9a11b5ee0fecc9de8e (diff)
downloadminetest-f1349be5422ab11b488309bee89fdcf868e860bb.tar.gz
minetest-f1349be5422ab11b488309bee89fdcf868e860bb.tar.bz2
minetest-f1349be5422ab11b488309bee89fdcf868e860bb.zip
Avoid marking map blocks dirty upon deserialization.
Diffstat (limited to 'src')
-rw-r--r--src/mapblock.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mapblock.cpp b/src/mapblock.cpp
index 5fb6b221b..8bfecd755 100644
--- a/src/mapblock.cpp
+++ b/src/mapblock.cpp
@@ -533,7 +533,7 @@ void MapBlock::deSerialize(std::istream &is, u8 version, bool disk)
// Timestamp
TRACESTREAM(<<"MapBlock::deSerialize "<<PP(getPos())
<<": Timestamp"<<std::endl);
- setTimestamp(readU32(is));
+ setTimestampNoChangedFlag(readU32(is));
m_disk_timestamp = m_timestamp;
// Dynamically re-set ids based on node names
@@ -716,10 +716,10 @@ void MapBlock::deSerialize_pre22(std::istream &is, u8 version, bool disk)
// Timestamp
if (version >= 17) {
- setTimestamp(readU32(is));
+ setTimestampNoChangedFlag(readU32(is));
m_disk_timestamp = m_timestamp;
} else {
- setTimestamp(BLOCK_TIMESTAMP_UNDEFINED);
+ setTimestampNoChangedFlag(BLOCK_TIMESTAMP_UNDEFINED);
}
// Dynamically re-set ids based on node names