Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
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()
- Loading branch information
Showing
with
13 additions
and 0 deletions.
- +4 −0 doc/lua_api.txt
- +2 −0 src/content_sao.h
- +1 −0 src/object_properties.cpp
- +1 −0 src/object_properties.h
- +5 −0 src/script/common/c_content.cpp