1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 00:25:19 +02:00

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:
Loic Blot
2015-04-03 09:04:02 +02:00
parent aa340fd857
commit 470de10de3
2 changed files with 17 additions and 25 deletions

View File

@@ -63,11 +63,6 @@ enum ClientDeletionReason {
CDR_DENY
};
/*
Some random functions
*/
v3f findSpawnPos(ServerMap &map);
class MapEditEventIgnorer
{
public:
@@ -474,6 +469,8 @@ private:
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);