forked from mirror/openmw-tes3mp
[Server] Rename sendToNearest to sendToLoaded
This commit is contained in:
parent
931ecd5acb
commit
ca68831395
3 changed files with 9 additions and 9 deletions
|
@ -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…
Reference in a new issue