summaryrefslogtreecommitdiff
path: root/src/content_sao.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2016-10-08 19:08:23 +0200
committerNer'zhul <nerzhul@users.noreply.github.com>2016-10-08 22:27:44 +0200
commit569b89b36fff058390cb90458da4285552a9c97e (patch)
treee4329a3e1a567301e7b09c416bbb7ab64585b7af /src/content_sao.h
parent7bbd716426bf989bf071e2322a9b797cc5f78acb (diff)
downloadminetest-569b89b36fff058390cb90458da4285552a9c97e.tar.gz
minetest-569b89b36fff058390cb90458da4285552a9c97e.tar.bz2
minetest-569b89b36fff058390cb90458da4285552a9c97e.zip
Move RemotePlayer code to its own cpp/header
Diffstat (limited to 'src/content_sao.h')
-rw-r--r--src/content_sao.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/content_sao.h b/src/content_sao.h
index 341ebb5da..76a3a37da 100644
--- a/src/content_sao.h
+++ b/src/content_sao.h
@@ -22,7 +22,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "serverobject.h"
#include "itemgroup.h"
-#include "player.h"
#include "object_properties.h"
/*
@@ -157,6 +156,8 @@ public:
}
};
+class RemotePlayer;
+
class PlayerSAO : public ServerActiveObject
{
public:
@@ -231,7 +232,7 @@ public:
void disconnected();
- RemotePlayer* getPlayer() { return m_player; }
+ RemotePlayer *getPlayer() { return m_player; }
u16 getPeerID() const { return m_peer_id; }
// Cheat prevention