mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
SAO: re-add old ActiveObjectTypes for a future migration layer
This commit is contained in:
parent
f8d5af7536
commit
c58d49977d
6 changed files with 14 additions and 11 deletions
|
@ -38,15 +38,14 @@ ServerActiveObject::~ServerActiveObject()
|
|||
{
|
||||
}
|
||||
|
||||
ServerActiveObject* ServerActiveObject::create(u8 type,
|
||||
ServerActiveObject* ServerActiveObject::create(ActiveObjectType type,
|
||||
ServerEnvironment *env, u16 id, v3f pos,
|
||||
const std::string &data)
|
||||
{
|
||||
// Find factory function
|
||||
std::map<u16, Factory>::iterator n;
|
||||
n = m_types.find(type);
|
||||
if(n == m_types.end())
|
||||
{
|
||||
if(n == m_types.end()) {
|
||||
// If factory is not found, just return.
|
||||
dstream<<"WARNING: ServerActiveObject: No factory for type="
|
||||
<<type<<std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue