diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-06-05 18:57:36 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-06-05 18:57:36 +0300 |
commit | 9b565b6bc427673437c28518d1f61c13b58be42e (patch) | |
tree | bd8548d509c07dae8e93bd08c864f2de0a46e85b /src/mapblock.h | |
parent | a649d43fe7349e5cfa4c67de93377004902c1b07 (diff) | |
download | minetest-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.h | 4 |
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; |