diff options
author | TeTpaAka <TeTpaAka@users.noreply.github.com> | 2015-07-03 12:31:34 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-07-18 07:41:43 +0200 |
commit | 8d03301138c0e82728d61b957ea47a5a4061633a (patch) | |
tree | bafa658a24d90ec5381f3a21e93803dc0165a1b5 /src/content_sao.h | |
parent | 9c76f379acb12246fb1e282661e67b9da4cdcb62 (diff) | |
download | minetest-8d03301138c0e82728d61b957ea47a5a4061633a.tar.gz minetest-8d03301138c0e82728d61b957ea47a5a4061633a.tar.bz2 minetest-8d03301138c0e82728d61b957ea47a5a4061633a.zip |
Fix invisible player when the attached entity is removed
Diffstat (limited to 'src/content_sao.h')
-rw-r--r-- | src/content_sao.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/content_sao.h b/src/content_sao.h index f61566665..1f0a68cd8 100644 --- a/src/content_sao.h +++ b/src/content_sao.h @@ -65,6 +65,9 @@ public: void getBonePosition(const std::string &bone, v3f *position, v3f *rotation); void setAttachment(int parent_id, const std::string &bone, v3f position, v3f rotation); void getAttachment(int *parent_id, std::string *bone, v3f *position, v3f *rotation); + void addAttachmentChild(int child_id); + void removeAttachmentChild(int child_id); + std::set<int> getAttachmentChildIds(); ObjectProperties* accessObjectProperties(); void notifyObjectPropertiesModified(); /* LuaEntitySAO-specific */ @@ -113,6 +116,7 @@ private: bool m_bone_position_sent; int m_attachment_parent_id; + std::set<int> m_attachment_child_ids; std::string m_attachment_bone; v3f m_attachment_position; v3f m_attachment_rotation; @@ -204,6 +208,9 @@ public: void getBonePosition(const std::string &bone, v3f *position, v3f *rotation); void setAttachment(int parent_id, const std::string &bone, v3f position, v3f rotation); void getAttachment(int *parent_id, std::string *bone, v3f *position, v3f *rotation); + void addAttachmentChild(int child_id); + void removeAttachmentChild(int child_id); + std::set<int> getAttachmentChildIds(); ObjectProperties* accessObjectProperties(); void notifyObjectPropertiesModified(); void setNametagColor(video::SColor color); @@ -320,6 +327,7 @@ private: bool m_bone_position_sent; int m_attachment_parent_id; + std::set<int> m_attachment_child_ids; std::string m_attachment_bone; v3f m_attachment_position; v3f m_attachment_rotation; |