summaryrefslogtreecommitdiff
path: root/src/mapblock.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-06-05 18:57:36 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-06-05 18:57:36 +0300
commit9b565b6bc427673437c28518d1f61c13b58be42e (patch)
treebd8548d509c07dae8e93bd08c864f2de0a46e85b /src/mapblock.h
parenta649d43fe7349e5cfa4c67de93377004902c1b07 (diff)
downloadminetest-9b565b6bc427673437c28518d1f61c13b58be42e.tar.gz
minetest-9b565b6bc427673437c28518d1f61c13b58be42e.tar.bz2
minetest-9b565b6bc427673437c28518d1f61c13b58be42e.zip
tried to reduce unnecessary map saving disk i/o a bit
Diffstat (limited to 'src/mapblock.h')
-rw-r--r--src/mapblock.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mapblock.h b/src/mapblock.h
index 1eb97353c..74666eb48 100644
--- a/src/mapblock.h
+++ b/src/mapblock.h
@@ -628,6 +628,10 @@ public:
m_timestamp = time;
setChangedFlag();
}
+ void setTimestampNoChangedFlag(u32 time)
+ {
+ m_timestamp = time;
+ }
u32 getTimestamp()
{
return m_timestamp;