1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

[Server] Rename doForNearest to forEachLoaded

This commit is contained in:
Koncord 2017-02-19 21:32:25 +08:00
parent 3aae782a51
commit f2ce46ffed
3 changed files with 3 additions and 3 deletions

View file

@ -170,7 +170,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet)
LOG_APPEND(Log::LOG_INFO, "- Moved to %s",
player->cell.getDescription().c_str());
player->doForNearest([this](Player *pl, Player *other){
player->forEachLoaded([this](Player *pl, Player *other) {
playerController->GetPacket(ID_PLAYER_DYNAMICSTATS)->Send(other, pl->guid);
playerController->GetPacket(ID_PLAYER_ATTRIBUTE)->Send(other, pl->guid);
playerController->GetPacket(ID_PLAYER_SKILL)->Send(other, pl->guid);

View file

@ -159,7 +159,7 @@ void Player::sendToLoaded(mwmp::PlayerPacket *myPacket)
}
}
void Player::doForNearest(std::function<void (Player *pl, Player *other)> func)
void Player::forEachLoaded(std::function<void(Player *pl, Player *other)> func)
{
std::list <Player*> plList;

View file

@ -73,7 +73,7 @@ public:
CellController::TContainer getCells();
void sendToLoaded(mwmp::PlayerPacket *myPacket);
void doForNearest(std::function<void (Player *pl, Player *other)> func);
void forEachLoaded(std::function<void(Player *pl, Player *other)> func);
public:
mwmp::InventoryChanges inventoryChangesBuffer;