[Server] Rename sendToNearest to sendToLoaded

coverity_scan^2
Koncord 8 years ago
parent 931ecd5acb
commit ca68831395

@ -152,7 +152,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet)
myPacket->Read(player);
//myPacket->Send(player, true); //send to other clients
player->sendToNearest(myPacket);
player->sendToLoaded(myPacket);
}
@ -213,7 +213,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet)
myPacket->Read(player);
//myPacket->Send(player, true);
player->sendToNearest(myPacket);
player->sendToLoaded(myPacket);
Script::Call<Script::CallbackIdentity("OnPlayerAttributesChange")>(player->getId());
}
@ -227,7 +227,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet)
{
myPacket->Read(player);
//myPacket->Send(player, true);
player->sendToNearest(myPacket);
player->sendToLoaded(myPacket);
Script::Call<Script::CallbackIdentity("OnPlayerSkillsChange")>(player->getId());
}
@ -254,7 +254,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet)
myPacket->Read(player);
//myPacket->Send(player, true);
player->sendToNearest(myPacket);
player->sendToLoaded(myPacket);
Script::Call<Script::CallbackIdentity("OnPlayerEquipmentChange")>(player->getId());
@ -318,7 +318,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet)
}
//myPacket->Send(player, true);
player->sendToNearest(myPacket);
player->sendToLoaded(myPacket);
playerController->GetPacket(ID_PLAYER_DYNAMICSTATS)->RequestData(player->attack.target);
}
break;
@ -330,7 +330,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet)
myPacket->Read(player);
//myPacket->Send(player, true);
player->sendToNearest(myPacket);
player->sendToLoaded(myPacket);
break;
}
@ -384,7 +384,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet)
myPacket->Read(player);
//myPacket->Send(player, true);
player->sendToNearest(myPacket);
player->sendToLoaded(myPacket);
break;
}

@ -141,7 +141,7 @@ CellController::TContainer Player::getCells()
return cells;
}
void Player::sendToNearest(mwmp::PlayerPacket *myPacket)
void Player::sendToLoaded(mwmp::PlayerPacket *myPacket)
{
std::list <Player*> plList;

@ -71,7 +71,7 @@ public:
virtual ~Player();
CellController::TContainer getCells();
void sendToNearest(mwmp::PlayerPacket *myPacket);
void sendToLoaded(mwmp::PlayerPacket *myPacket);
void doForNearest(std::function<void (Player *pl, Player *other)> func);

Loading…
Cancel
Save