forked from mirror/openmw-tes3mp
Don't send unhandled skill and attribute requests to joining players
This commit is contained in:
parent
79c561057c
commit
9690e007df
2 changed files with 7 additions and 3 deletions
|
@ -352,8 +352,6 @@ void Networking::NewPlayer(RakNet::RakNetGUID guid)
|
|||
{
|
||||
controller->GetPacket(ID_GAME_BASE_INFO)->RequestData(guid);
|
||||
controller->GetPacket(ID_GAME_UPDATE_BASESTATS)->RequestData(guid);
|
||||
controller->GetPacket(ID_GAME_ATTRIBUTE)->RequestData(guid);
|
||||
controller->GetPacket(ID_GAME_SKILL)->RequestData(guid);
|
||||
controller->GetPacket(ID_GAME_UPDATE_POS)->RequestData(guid);
|
||||
controller->GetPacket(ID_GAME_CELL)->RequestData(guid);
|
||||
controller->GetPacket(ID_GAME_UPDATE_EQUIPED)->RequestData(guid);
|
||||
|
|
|
@ -468,6 +468,9 @@ void Networking::ReceiveMessage(RakNet::Packet *packet)
|
|||
|
||||
case ID_GAME_ATTRIBUTE:
|
||||
{
|
||||
if (packet->length == myPacket->headerSize())
|
||||
return;
|
||||
|
||||
BasePlayer *__pl = nullptr;
|
||||
MWWorld::Ptr __pl_ptr;
|
||||
if (id == myid)
|
||||
|
@ -497,6 +500,9 @@ void Networking::ReceiveMessage(RakNet::Packet *packet)
|
|||
|
||||
case ID_GAME_SKILL:
|
||||
{
|
||||
if (packet->length == myPacket->headerSize())
|
||||
return;
|
||||
|
||||
BasePlayer *__pl = nullptr;
|
||||
MWWorld::Ptr __pl_ptr;
|
||||
if (id == myid)
|
||||
|
|
Loading…
Reference in a new issue