diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-17 11:37:55 +0100 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-17 11:37:55 +0100 |
commit | c58d49977da5aab88f5a9d5b540c6237ca5cdcb5 (patch) | |
tree | a5bc0c0987b57cbee1052c0289c19cbf5274fcb3 /src/serverobject.cpp | |
parent | f8d5af753617d502920556cff88f451ef670c210 (diff) | |
download | minetest-c58d49977da5aab88f5a9d5b540c6237ca5cdcb5.tar.gz minetest-c58d49977da5aab88f5a9d5b540c6237ca5cdcb5.tar.bz2 minetest-c58d49977da5aab88f5a9d5b540c6237ca5cdcb5.zip |
SAO: re-add old ActiveObjectTypes for a future migration layer
Diffstat (limited to 'src/serverobject.cpp')
-rw-r--r-- | src/serverobject.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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<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; |