From f2ce46ffed31014b1b014a419eb0b19f8830188c Mon Sep 17 00:00:00 2001 From: Koncord Date: Sun, 19 Feb 2017 21:32:25 +0800 Subject: [PATCH] [Server] Rename doForNearest to forEachLoaded --- apps/openmw-mp/Networking.cpp | 2 +- apps/openmw-mp/Player.cpp | 2 +- apps/openmw-mp/Player.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index 77f880ffe..0d78468f3 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -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); diff --git a/apps/openmw-mp/Player.cpp b/apps/openmw-mp/Player.cpp index 8a63aa1ee..33edfd4f5 100644 --- a/apps/openmw-mp/Player.cpp +++ b/apps/openmw-mp/Player.cpp @@ -159,7 +159,7 @@ void Player::sendToLoaded(mwmp::PlayerPacket *myPacket) } } -void Player::doForNearest(std::function func) +void Player::forEachLoaded(std::function func) { std::list plList; diff --git a/apps/openmw-mp/Player.hpp b/apps/openmw-mp/Player.hpp index 41df9c780..f9fdbb878 100644 --- a/apps/openmw-mp/Player.hpp +++ b/apps/openmw-mp/Player.hpp @@ -73,7 +73,7 @@ public: CellController::TContainer getCells(); void sendToLoaded(mwmp::PlayerPacket *myPacket); - void doForNearest(std::function func); + void forEachLoaded(std::function func); public: mwmp::InventoryChanges inventoryChangesBuffer;