summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-09-30 12:00:05 +0200
committerGitHub <noreply@github.com>2017-09-30 12:00:05 +0200
commitbe10c0893e2e6d1852a027abccc4cd3cdc85a140 (patch)
treeeabfe8164007c420326f52bfc7e13e9be0f6bfb6 /src/player.h
parentf729b5d2bdc65ce3c51f1004c58cb93a37504b49 (diff)
downloadminetest-be10c0893e2e6d1852a027abccc4cd3cdc85a140.tar.gz
minetest-be10c0893e2e6d1852a027abccc4cd3cdc85a140.tar.bz2
minetest-be10c0893e2e6d1852a027abccc4cd3cdc85a140.zip
Make Player::peer_id server-side only and add getters and setters (#6478)
* Make Player::peer_id server-side only and add getters and setters Player::peer_id has no sense client side, move it to server, make it private and add setter and getter Also add some PEER_ID_INEXISTENT instead of harcoded 0
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/player.h b/src/player.h
index aaafd2ae1..e343f55a5 100644
--- a/src/player.h
+++ b/src/player.h
@@ -147,8 +147,6 @@ public:
v2s32 local_animations[4];
float local_animation_speed;
- session_t peer_id = PEER_ID_INEXISTENT;
-
std::string inventory_formspec;
PlayerControl control;