aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-07-16 17:39:03 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-07-16 17:39:03 +0300
commitafa2b8714f2e5dcbc45099c9a9418b25bfcc097f (patch)
tree6c59444f78c48dcc2d2f350007464144af12945a
parent98ccac59697f12ead0a1ee9e0d71f79fc697293f (diff)
downloadminetest-afa2b8714f2e5dcbc45099c9a9418b25bfcc097f.tar.gz
minetest-afa2b8714f2e5dcbc45099c9a9418b25bfcc097f.tar.bz2
minetest-afa2b8714f2e5dcbc45099c9a9418b25bfcc097f.zip
Attempt to fix a problem with the factory mappings of objects residing in different source files than the prototype objects that fill them in
-rw-r--r--src/clientobject.cpp2
-rw-r--r--src/content_cao.cpp2
-rw-r--r--src/content_sao.cpp2
-rw-r--r--src/serverobject.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/clientobject.cpp b/src/clientobject.cpp
index 787efef29..bec9f46fd 100644
--- a/src/clientobject.cpp
+++ b/src/clientobject.cpp
@@ -26,8 +26,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
ClientActiveObject
*/
-core::map<u16, ClientActiveObject::Factory> ClientActiveObject::m_types;
-
ClientActiveObject::ClientActiveObject(u16 id):
ActiveObject(id)
{
diff --git a/src/content_cao.cpp b/src/content_cao.cpp
index ab20f1a95..dc5ac400f 100644
--- a/src/content_cao.cpp
+++ b/src/content_cao.cpp
@@ -21,6 +21,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "tile.h"
#include "environment.h"
+core::map<u16, ClientActiveObject::Factory> ClientActiveObject::m_types;
+
/*
TestCAO
*/
diff --git a/src/content_sao.cpp b/src/content_sao.cpp
index fc6f208a0..c41f4ed78 100644
--- a/src/content_sao.cpp
+++ b/src/content_sao.cpp
@@ -21,6 +21,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "collision.h"
#include "environment.h"
+core::map<u16, ServerActiveObject::Factory> ServerActiveObject::m_types;
+
/*
TestSAO
*/
diff --git a/src/serverobject.cpp b/src/serverobject.cpp
index 8acb35f6d..ce19ea34f 100644
--- a/src/serverobject.cpp
+++ b/src/serverobject.cpp
@@ -21,8 +21,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <fstream>
#include "inventory.h"
-core::map<u16, ServerActiveObject::Factory> ServerActiveObject::m_types;
-
ServerActiveObject::ServerActiveObject(ServerEnvironment *env, u16 id, v3f pos):
ActiveObject(id),
m_known_by_count(0),