forked from mirror/openmw-tes3mp
Remove outdated ID_GAME_UPDATE_SKILLS packet, part 2
This commit is contained in:
parent
8abef0bebe
commit
81999a8179
5 changed files with 6 additions and 10 deletions
|
@ -488,7 +488,7 @@ void Networking::ReceiveMessage(RakNet::Packet *packet)
|
||||||
|
|
||||||
myPacket->Packet(&bsIn, __pl, false);
|
myPacket->Packet(&bsIn, __pl, false);
|
||||||
|
|
||||||
for (int i = 0; i < PacketAttributesAndStats::AttributesCount; ++i)
|
for (int i = 0; i < 8; ++i)
|
||||||
{
|
{
|
||||||
attributeValue.readState(__pl->CreatureStats()->mAttributes[i]);
|
attributeValue.readState(__pl->CreatureStats()->mAttributes[i]);
|
||||||
__pl_ptr.getClass().getCreatureStats(__pl_ptr).setAttribute(i, attributeValue);
|
__pl_ptr.getClass().getCreatureStats(__pl_ptr).setAttribute(i, attributeValue);
|
||||||
|
@ -517,7 +517,7 @@ void Networking::ReceiveMessage(RakNet::Packet *packet)
|
||||||
|
|
||||||
myPacket->Packet(&bsIn, __pl, false);
|
myPacket->Packet(&bsIn, __pl, false);
|
||||||
|
|
||||||
for (int i = 0; i < PacketAttributesAndStats::StatsCount; ++i)
|
for (int i = 0; i < 27; ++i)
|
||||||
{
|
{
|
||||||
skillValue.readState(__pl->NpcStats()->mSkills[i]);
|
skillValue.readState(__pl->NpcStats()->mSkills[i]);
|
||||||
__pl_ptr.getClass().getNpcStats(__pl_ptr).setSkill(i, skillValue);
|
__pl_ptr.getClass().getNpcStats(__pl_ptr).setSkill(i, skillValue);
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
#include <components/openmw-mp/Packets/PacketPosition.hpp>
|
#include <components/openmw-mp/Packets/PacketPosition.hpp>
|
||||||
#include <components/openmw-mp/Packets/PacketBaseInfo.hpp>
|
#include <components/openmw-mp/Packets/PacketBaseInfo.hpp>
|
||||||
#include <components/openmw-mp/Packets/PacketEquiped.hpp>
|
#include <components/openmw-mp/Packets/PacketEquiped.hpp>
|
||||||
#include <components/openmw-mp/Packets/PacketAttributesAndStats.hpp>
|
|
||||||
#include <components/openmw-mp/Packets/PacketAttack.hpp>
|
#include <components/openmw-mp/Packets/PacketAttack.hpp>
|
||||||
#include <components/openmw-mp/Packets/PacketMainStats.hpp>
|
#include <components/openmw-mp/Packets/PacketMainStats.hpp>
|
||||||
#include <components/openmw-mp/Packets/PacketResurrect.hpp>
|
#include <components/openmw-mp/Packets/PacketResurrect.hpp>
|
||||||
|
|
|
@ -148,10 +148,10 @@ add_component_dir (version
|
||||||
add_component_dir (openmw-mp
|
add_component_dir (openmw-mp
|
||||||
Log
|
Log
|
||||||
PacketsController
|
PacketsController
|
||||||
Packets/BasePacket Packets/PacketBaseInfo Packets/PacketPosition Packets/PacketEquiped Packets/PacketAttributesAndStats
|
Packets/BasePacket Packets/PacketBaseInfo Packets/PacketPosition Packets/PacketEquiped Packets/PacketAttack
|
||||||
Packets/PacketAttack Packets/PacketMainStats Packets/PacketCell Packets/PacketDrawState Packets/PacketChatMessage
|
Packets/PacketMainStats Packets/PacketCell Packets/PacketDrawState Packets/PacketChatMessage Packets/PacketCharGen
|
||||||
Packets/PacketCharGen Packets/PacketAttribute Packets/PacketSkill Packets/PacketHandshake Packets/PacketGUIBoxes
|
Packets/PacketAttribute Packets/PacketSkill Packets/PacketHandshake Packets/PacketGUIBoxes Packets/PacketClass
|
||||||
Packets/PacketClass Packets/PacketTime)
|
Packets/PacketTime)
|
||||||
|
|
||||||
add_component_dir (fallback
|
add_component_dir (fallback
|
||||||
fallback validate
|
fallback validate
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
#include <components/openmw-mp/NetworkMessages.hpp>
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||||
#include <components/esm/creaturestats.hpp>
|
#include <components/esm/creaturestats.hpp>
|
||||||
#include "PacketAttributesAndStats.hpp"
|
|
||||||
|
|
||||||
using namespace mwmp;
|
using namespace mwmp;
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
#include "Packets/PacketPosition.hpp"
|
#include "Packets/PacketPosition.hpp"
|
||||||
#include "Packets/PacketBaseInfo.hpp"
|
#include "Packets/PacketBaseInfo.hpp"
|
||||||
#include "components/openmw-mp/Packets/PacketEquiped.hpp"
|
#include "components/openmw-mp/Packets/PacketEquiped.hpp"
|
||||||
#include "Packets/PacketAttributesAndStats.hpp"
|
|
||||||
#include "Packets/PacketAttack.hpp"
|
#include "Packets/PacketAttack.hpp"
|
||||||
#include "Packets/PacketMainStats.hpp"
|
#include "Packets/PacketMainStats.hpp"
|
||||||
#include "Packets/PacketResurrect.hpp"
|
#include "Packets/PacketResurrect.hpp"
|
||||||
|
@ -44,7 +43,6 @@ mwmp::PacketsController::PacketsController(RakNet::RakPeerInterface *peer)
|
||||||
AddPacket<PacketBaseInfo>(&packets, peer);
|
AddPacket<PacketBaseInfo>(&packets, peer);
|
||||||
AddPacket<PacketEquiped>(&packets, peer);
|
AddPacket<PacketEquiped>(&packets, peer);
|
||||||
|
|
||||||
AddPacket<PacketAttributesAndStats>(&packets, peer);
|
|
||||||
AddPacket<PacketAttack>(&packets, peer);
|
AddPacket<PacketAttack>(&packets, peer);
|
||||||
AddPacket<PacketMainStats>(&packets, peer);
|
AddPacket<PacketMainStats>(&packets, peer);
|
||||||
AddPacket<PacketResurrect>(&packets, peer);
|
AddPacket<PacketResurrect>(&packets, peer);
|
||||||
|
|
Loading…
Reference in a new issue