mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Drop genericobject.{cpp,h} (#9629)
* Drop genericobject.{cpp,h} This file is not for generic object but for ActiveObject message passing. Put ownership of the various commands to the right objects and cleanup the related code. * Protect ServerActiveObject::m_messages_out * typo fix
This commit is contained in:
parent
2349d31bae
commit
f648fb76ae
16 changed files with 300 additions and 407 deletions
|
@ -450,7 +450,7 @@ void ClientEnvironment::addActiveObject(u16 id, u8 type,
|
|||
// Object initialized:
|
||||
if ((obj = getActiveObject(new_id))) {
|
||||
// Final step is to update all children which are already known
|
||||
// Data provided by GENERIC_CMD_SPAWN_INFANT
|
||||
// Data provided by AO_CMD_SPAWN_INFANT
|
||||
const auto &children = obj->getAttachmentChildIds();
|
||||
for (auto c_id : children) {
|
||||
if (auto *o = getActiveObject(c_id))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue