summaryrefslogtreecommitdiff
path: root/src/object_properties.cpp
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-09-28 17:11:51 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-09-28 17:11:51 +0200
commit08846cd05cd402cc7f8d025aaba96c5bb0aade2c (patch)
tree5c77ab4c23397bcb36bc9add361605296dcd3e0f /src/object_properties.cpp
parent2afe62952c52e9dc9cbd413db9a316ae4359c331 (diff)
downloadminetest-08846cd05cd402cc7f8d025aaba96c5bb0aade2c.tar.gz
minetest-08846cd05cd402cc7f8d025aaba96c5bb0aade2c.tar.bz2
minetest-08846cd05cd402cc7f8d025aaba96c5bb0aade2c.zip
Add static_save property to luaentites to not save them statically. (#5112)
* Add no_static_save property to luaentites to not save them statically. This allows for temporary objects that would get deleted anyway as soon as they are loaded again without the static saving overhead. * Use positive meaning for static_save object property * Invert meaning also for the LUA parameter Note: getboolfield() does not change &result when field does not exist, so it defaults to the default value in the header file, which is 'true'. * Extend push_object_properties()
Diffstat (limited to 'src/object_properties.cpp')
-rw-r--r--src/object_properties.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/object_properties.cpp b/src/object_properties.cpp
index 9cbaadc64..ae0305019 100644
--- a/src/object_properties.cpp
+++ b/src/object_properties.cpp
@@ -66,6 +66,7 @@ std::string ObjectProperties::dump()
os << ", selectionbox=" << PP(selectionbox.MinEdge) << "," << PP(selectionbox.MaxEdge);
os << ", pointable=" << pointable;
os << ", can_zoom=" << can_zoom;
+ os << ", static_save=" << static_save;
return os.str();
}