diff options
author | sfan5 <sfan5@live.de> | 2020-10-19 20:38:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-19 20:38:15 +0200 |
commit | 660115c1abc76f3d4f6a6597ed0c4737465c6c55 (patch) | |
tree | f919584a87460f07d81fa994008e77bcb27a3cba /src/script/common | |
parent | b826e3973065a0bb81269c8decb5a33073508164 (diff) | |
download | minetest-660115c1abc76f3d4f6a6597ed0c4737465c6c55.tar.gz minetest-660115c1abc76f3d4f6a6597ed0c4737465c6c55.tar.bz2 minetest-660115c1abc76f3d4f6a6597ed0c4737465c6c55.zip |
Decouple entity minimap markers from nametags replacing with show_on_minimap property (#10443)
Diffstat (limited to 'src/script/common')
-rw-r--r-- | src/script/common/c_content.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp index a95cf94a1..e3cb9042e 100644 --- a/src/script/common/c_content.cpp +++ b/src/script/common/c_content.cpp @@ -331,6 +331,7 @@ void read_object_properties(lua_State *L, int index, getfloatfield(L, -1, "zoom_fov", prop->zoom_fov); getboolfield(L, -1, "use_texture_alpha", prop->use_texture_alpha); getboolfield(L, -1, "shaded", prop->shaded); + getboolfield(L, -1, "show_on_minimap", prop->show_on_minimap); getstringfield(L, -1, "damage_texture_modifier", prop->damage_texture_modifier); } @@ -419,6 +420,8 @@ void push_object_properties(lua_State *L, ObjectProperties *prop) lua_setfield(L, -2, "shaded"); lua_pushlstring(L, prop->damage_texture_modifier.c_str(), prop->damage_texture_modifier.size()); lua_setfield(L, -2, "damage_texture_modifier"); + lua_pushboolean(L, prop->show_on_minimap); + lua_setfield(L, -2, "show_on_minimap"); } /******************************************************************************/ |