diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-09-30 12:00:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-30 12:00:05 +0200 |
commit | be10c0893e2e6d1852a027abccc4cd3cdc85a140 (patch) | |
tree | eabfe8164007c420326f52bfc7e13e9be0f6bfb6 /src/player.h | |
parent | f729b5d2bdc65ce3c51f1004c58cb93a37504b49 (diff) | |
download | minetest-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.h | 2 |
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; |