mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
fixed erroneus handling of many players with no peer existing at same time
This commit is contained in:
parent
a35d8dabcf
commit
1986326731
2 changed files with 39 additions and 9 deletions
13
src/server.h
13
src/server.h
|
@ -437,11 +437,14 @@ private:
|
|||
// When called, connection mutex should be locked
|
||||
RemoteClient* getClient(u16 peer_id);
|
||||
|
||||
// Gets a player from memory or creates one.
|
||||
// Caller should check isClientConnected() and set it appropriately.
|
||||
//
|
||||
// Call with env and con locked.
|
||||
Player *emergePlayer(const char *name, const char *password);
|
||||
/*
|
||||
Get a player from memory or creates one.
|
||||
If player is already connected, return NULL
|
||||
|
||||
Call with env and con locked.
|
||||
*/
|
||||
Player *emergePlayer(const char *name, const char *password,
|
||||
u16 peer_id);
|
||||
|
||||
/*
|
||||
Update water pressure.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue