From c58d49977da5aab88f5a9d5b540c6237ca5cdcb5 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Tue, 17 Feb 2015 11:37:55 +0100 Subject: SAO: re-add old ActiveObjectTypes for a future migration layer --- src/serverobject.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/serverobject.cpp') diff --git a/src/serverobject.cpp b/src/serverobject.cpp index 81307bc34..98d82550f 100644 --- a/src/serverobject.cpp +++ b/src/serverobject.cpp @@ -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::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=" <