Fix players spawned at (0,0,0) in some rare cases instead of static_spawnpoint, if set
Approved by: @kwoelkr
This commit is contained in:
@@ -63,11 +63,6 @@ enum ClientDeletionReason {
|
||||
CDR_DENY
|
||||
};
|
||||
|
||||
/*
|
||||
Some random functions
|
||||
*/
|
||||
v3f findSpawnPos(ServerMap &map);
|
||||
|
||||
class MapEditEventIgnorer
|
||||
{
|
||||
public:
|
||||
@@ -474,6 +469,8 @@ class Server : public con::PeerHandler, public MapEventReceiver,
|
||||
void DeleteClient(u16 peer_id, ClientDeletionReason reason);
|
||||
void UpdateCrafting(Player *player);
|
||||
|
||||
v3f findSpawnPos();
|
||||
|
||||
// When called, connection mutex should be locked
|
||||
RemoteClient* getClient(u16 peer_id,ClientState state_min=CS_Active);
|
||||
RemoteClient* getClientNoEx(u16 peer_id,ClientState state_min=CS_Active);
|
||||
|
||||
Reference in New Issue
Block a user