mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
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
This commit is contained in:
parent
f729b5d2bd
commit
be10c0893e
8 changed files with 64 additions and 73 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue