summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-09-27 19:47:36 +0200
committerGitHub <noreply@github.com>2017-09-27 19:47:36 +0200
commitad7daf7b52348e1b71aa803be10de5b2134cba11 (patch)
treee5a528d0e9be11f678d113dde3ec4b49f3d96c26 /src/player.h
parent50b2185ced9dc64e054ce743bbc22d15ecdf6192 (diff)
downloadminetest-ad7daf7b52348e1b71aa803be10de5b2134cba11.tar.gz
minetest-ad7daf7b52348e1b71aa803be10de5b2134cba11.tar.bz2
minetest-ad7daf7b52348e1b71aa803be10de5b2134cba11.zip
Add session_t typedef + remove unused functions (#6470)
* Add session_t typedef + remove unused functions u16 peer_id is used everywhere, to be more consistent and permit some evolutions on this type in the future (i'm working on a PoC), uniformize u16 peer_id to SessionId peer_id
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/player.h b/src/player.h
index 27da73c16..aaafd2ae1 100644
--- a/src/player.h
+++ b/src/player.h
@@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "irrlichttypes_bloated.h"
#include "inventory.h"
#include "constants.h"
+#include "network/networkprotocol.h"
#include "util/basic_macros.h"
#include <list>
#include <mutex>
@@ -146,7 +147,7 @@ public:
v2s32 local_animations[4];
float local_animation_speed;
- u16 peer_id = PEER_ID_INEXISTENT;
+ session_t peer_id = PEER_ID_INEXISTENT;
std::string inventory_formspec;