1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-27 17:28:41 +00:00

Players are left on server while server is running. No passwords yet.

This commit is contained in:
Perttu Ahola 2011-01-15 03:28:19 +02:00
parent cfaa15895a
commit 3fb0d2fb65
9 changed files with 312 additions and 174 deletions

View file

@ -96,9 +96,10 @@ public:
virtual bool isLocal() const = 0;
virtual void updateLight(u8 light_at_pos) {};
virtual bool isClientConnected() { return false; }
virtual void setClientConnected(bool) {}
// NOTE: Use peer_id == 0 for disconnected
/*virtual bool isClientConnected() { return false; }
virtual void setClientConnected(bool) {}*/
bool touching_ground;
bool in_water;
@ -118,8 +119,9 @@ protected:
class ServerRemotePlayer : public Player
{
public:
ServerRemotePlayer(bool client_connected):
m_client_connected(client_connected)
/*ServerRemotePlayer(bool client_connected):
m_client_connected(client_connected)*/
ServerRemotePlayer()
{
}
virtual ~ServerRemotePlayer()
@ -135,7 +137,7 @@ public:
{
}
virtual bool isClientConnected()
/*virtual bool isClientConnected()
{
return m_client_connected;
}
@ -145,7 +147,7 @@ public:
}
// This
bool m_client_connected;
bool m_client_connected;*/
private:
};