mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +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
|
@ -1420,10 +1420,7 @@ void ServerEnvironment::step(float dtime)
|
|||
// Step object
|
||||
obj->step(dtime, send_recommended);
|
||||
// Read messages from object
|
||||
while (!obj->m_messages_out.empty()) {
|
||||
this->m_active_object_messages.push(obj->m_messages_out.front());
|
||||
obj->m_messages_out.pop();
|
||||
}
|
||||
obj->dumpAOMessagesToQueue(m_active_object_messages);
|
||||
};
|
||||
m_ao_manager.step(dtime, cb_state);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue