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;