mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 20:36:42 +00:00
[Server] Rename isPlayerExists() into doesPlayerExist()
This commit is contained in:
parent
21d5bb4d4e
commit
826e64b40e
3 changed files with 3 additions and 3 deletions
|
@ -532,7 +532,7 @@ int Networking::mainLoop()
|
||||||
bsIn.IgnoreBytes((unsigned int) RakNet::RakNetGUID::size()); // Ignore GUID from received packet
|
bsIn.IgnoreBytes((unsigned int) RakNet::RakNetGUID::size()); // Ignore GUID from received packet
|
||||||
|
|
||||||
|
|
||||||
if (Players::isPlayerExists(packet->guid))
|
if (Players::doesPlayerExist(packet->guid))
|
||||||
update(packet, bsIn);
|
update(packet, bsIn);
|
||||||
else
|
else
|
||||||
preInit(packet, bsIn);
|
preInit(packet, bsIn);
|
||||||
|
|
|
@ -177,7 +177,7 @@ void Player::forEachLoaded(std::function<void(Player *pl, Player *other)> func)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Players::isPlayerExists(RakNet::RakNetGUID guid)
|
bool Players::doesPlayerExist(RakNet::RakNetGUID guid)
|
||||||
{
|
{
|
||||||
return players.find(guid) != players.end();
|
return players.find(guid) != players.end();
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ public:
|
||||||
static Player *getPlayer(unsigned short id);
|
static Player *getPlayer(unsigned short id);
|
||||||
static TPlayers *getPlayers();
|
static TPlayers *getPlayers();
|
||||||
static unsigned short getLastPlayerId();
|
static unsigned short getLastPlayerId();
|
||||||
static bool isPlayerExists(RakNet::RakNetGUID guid);
|
static bool doesPlayerExist(RakNet::RakNetGUID guid);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static TPlayers players;
|
static TPlayers players;
|
||||||
|
|
Loading…
Reference in a new issue