diff options
author | Elias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com> | 2020-11-04 16:44:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 16:44:42 +0100 |
commit | 5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc (patch) | |
tree | c980d614fec4a5495798be3e79e033229062c3cd /src/client/clientobject.cpp | |
parent | 28f6a79706b088c37268a59d90878220dc4ef9c7 (diff) | |
parent | 3af10766fd2b58b068e970266724d7eb10e9316b (diff) | |
download | dragonfireclient-5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc.tar.xz |
Merge branch 'master' into master
Diffstat (limited to 'src/client/clientobject.cpp')
-rw-r--r-- | src/client/clientobject.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/client/clientobject.cpp b/src/client/clientobject.cpp index f4b69201b..af8b35da1 100644 --- a/src/client/clientobject.cpp +++ b/src/client/clientobject.cpp @@ -25,11 +25,8 @@ 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) { } @@ -38,15 +35,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; } @@ -62,5 +59,3 @@ void ClientActiveObject::registerType(u16 type, Factory f) return; m_types[type] = f; } - - |