diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-05-10 16:51:54 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-05-10 16:51:54 +0200 |
commit | 26cfbda653db1b843dbe2e78b0bb642f17cd5d8d (patch) | |
tree | fe577262e1a2cd45608e480c275f60e84cad146e /src/client/content_cao.cpp | |
parent | 6dc7a65d9e23a8bd20f729e041e84615b2313deb (diff) | |
download | dragonfireclient-26cfbda653db1b843dbe2e78b0bb642f17cd5d8d.tar.xz |
Add on_object_properties_change callback
Diffstat (limited to 'src/client/content_cao.cpp')
-rw-r--r-- | src/client/content_cao.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/content_cao.cpp b/src/client/content_cao.cpp index 27ba0b6dd..6ab83361a 100644 --- a/src/client/content_cao.cpp +++ b/src/client/content_cao.cpp @@ -1693,6 +1693,10 @@ void GenericCAO::processMessage(const std::string &data) newprops.deSerialize(is); setProperties(newprops); + // notify CSM + if (m_client->modsLoaded()) + m_client->getScript()->on_object_properties_change(m_id); + } else if (cmd == AO_CMD_UPDATE_POSITION) { // Not sent by the server if this object is an attachment. // We might however get here if the server notices the object being detached before the client. |