summaryrefslogtreecommitdiff
path: root/src/client/clientenvironment.h
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2019-10-02 19:11:27 +0200
committerGitHub <noreply@github.com>2019-10-02 19:11:27 +0200
commit81c2370c8b1a66a279a5ff450c78caf5dfef77bf (patch)
treedafd49bfa912783985b5a58713805027f06322b4 /src/client/clientenvironment.h
parent251038e136f22f29999bd938e6c9e9f1a5269243 (diff)
downloadminetest-81c2370c8b1a66a279a5ff450c78caf5dfef77bf.tar.gz
minetest-81c2370c8b1a66a279a5ff450c78caf5dfef77bf.tar.bz2
minetest-81c2370c8b1a66a279a5ff450c78caf5dfef77bf.zip
Attachments: Fix attachments to temporary removed objects (#8989)
Does not clear the parent's attachment information when the child is deleted locally. Either it was removed permanently, or just temporary - we don't know, but it's up to the server to send a *detach from child" packet for the parent.
Diffstat (limited to 'src/client/clientenvironment.h')
-rw-r--r--src/client/clientenvironment.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/clientenvironment.h b/src/client/clientenvironment.h
index f182b5951..864496a41 100644
--- a/src/client/clientenvironment.h
+++ b/src/client/clientenvironment.h
@@ -104,10 +104,7 @@ public:
u16 addActiveObject(ClientActiveObject *object);
void addActiveObject(u16 id, u8 type, const std::string &init_data);
- void removeActiveObject(u16 id)
- {
- m_ao_manager.removeObject(id);
- }
+ void removeActiveObject(u16 id);
void processActiveObjectMessage(u16 id, const std::string &data);