aboutsummaryrefslogtreecommitdiff
path: root/src/script/scripting_client.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-02-03 21:35:08 +0100
committersfan5 <sfan5@live.de>2022-02-08 19:31:24 +0100
commitba6fbc417ecb812345c1747f42b6606dfc8e1d5b (patch)
tree6f62155dd13e62a187581967e0bf57e20686e948 /src/script/scripting_client.cpp
parentce199d6f9e65d6ba51cbf2e1f948586ddc617317 (diff)
downloadminetest-ba6fbc417ecb812345c1747f42b6606dfc8e1d5b.tar.gz
minetest-ba6fbc417ecb812345c1747f42b6606dfc8e1d5b.tar.bz2
minetest-ba6fbc417ecb812345c1747f42b6606dfc8e1d5b.zip
Remove awful Mingw32 workarounds
Instead a warning is triggered if an affected compiler is detected. closes #12022
Diffstat (limited to 'src/script/scripting_client.cpp')
0 files changed, 0 insertions, 0 deletions
c">ClientActiveObject::ClientActiveObject(u16 id, IGameDef *gamedef, ClientEnvironment *env): ActiveObject(id), m_gamedef(gamedef), m_env(env) { } ClientActiveObject::~ClientActiveObject() { removeFromScene(true); } ClientActiveObject* ClientActiveObject::create(ActiveObjectType type, IGameDef *gamedef, ClientEnvironment *env) { // Find factory function std::map<u16, Factory>::iterator n; n = m_types.find(type); if(n == m_types.end()) { // If factory is not found, just return. warningstream<<"ClientActiveObject: No factory for type=" <<(int)type<<std::endl; return NULL; } Factory f = n->second; ClientActiveObject *object = (*f)(gamedef, env); return object; } void ClientActiveObject::registerType(u16 type, Factory f) { std::map<u16, Factory>::iterator n; n = m_types.find(type); if(n != m_types.end()) return; m_types[type] = f; }