aboutsummaryrefslogtreecommitdiff
path: root/src/client/clientobject.cpp
diff options
context:
space:
mode:
authorElias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com>2020-11-04 16:57:47 +0100
committerGitHub <noreply@github.com>2020-11-04 16:57:47 +0100
commit3e16c3a78fff61c20e63ba730d15e94e3bb877b4 (patch)
treec070350db219f2c4241d22bc31949685c7b42fe9 /src/client/clientobject.cpp
parent5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc (diff)
parent6ccb5835ff55d85156be91473c598eca9d6cb9a6 (diff)
downloaddragonfireclient-3e16c3a78fff61c20e63ba730d15e94e3bb877b4.tar.xz
Merge branch 'master' into master
Diffstat (limited to 'src/client/clientobject.cpp')
-rw-r--r--src/client/clientobject.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/client/clientobject.cpp b/src/client/clientobject.cpp
index af8b35da1..f4b69201b 100644
--- a/src/client/clientobject.cpp
+++ b/src/client/clientobject.cpp
@@ -25,8 +25,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
ClientActiveObject
*/
-ClientActiveObject::ClientActiveObject(u16 id, Client *client, ClientEnvironment *env) :
- ActiveObject(id), m_client(client), m_env(env)
+ClientActiveObject::ClientActiveObject(u16 id, Client *client,
+ ClientEnvironment *env):
+ ActiveObject(id),
+ m_client(client),
+ m_env(env)
{
}
@@ -35,15 +38,15 @@ ClientActiveObject::~ClientActiveObject()
removeFromScene(true);
}
-ClientActiveObject *ClientActiveObject::create(
- ActiveObjectType type, Client *client, ClientEnvironment *env)
+ClientActiveObject* ClientActiveObject::create(ActiveObjectType type,
+ Client *client, ClientEnvironment *env)
{
// Find factory function
auto 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;
+ warningstream << "ClientActiveObject: No factory for type="
+ << (int)type << std::endl;
return NULL;
}
@@ -59,3 +62,5 @@ void ClientActiveObject::registerType(u16 type, Factory f)
return;
m_types[type] = f;
}
+
+