Remove outdated ID_GAME_UPDATE_SKILLS packet, part 2

coverity_scan^2
David Cernat 8 years ago
parent 8abef0bebe
commit 81999a8179

@ -488,7 +488,7 @@ void Networking::ReceiveMessage(RakNet::Packet *packet)
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]);
__pl_ptr.getClass().getCreatureStats(__pl_ptr).setAttribute(i, attributeValue);
@ -517,7 +517,7 @@ void Networking::ReceiveMessage(RakNet::Packet *packet)
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]);
__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/PacketBaseInfo.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/PacketMainStats.hpp>
#include <components/openmw-mp/Packets/PacketResurrect.hpp>

@ -148,10 +148,10 @@ add_component_dir (version
add_component_dir (openmw-mp
Log
PacketsController
Packets/BasePacket Packets/PacketBaseInfo Packets/PacketPosition Packets/PacketEquiped Packets/PacketAttributesAndStats
Packets/PacketAttack Packets/PacketMainStats Packets/PacketCell Packets/PacketDrawState Packets/PacketChatMessage
Packets/PacketCharGen Packets/PacketAttribute Packets/PacketSkill Packets/PacketHandshake Packets/PacketGUIBoxes
Packets/PacketClass Packets/PacketTime)
Packets/BasePacket Packets/PacketBaseInfo Packets/PacketPosition Packets/PacketEquiped Packets/PacketAttack
Packets/PacketMainStats Packets/PacketCell Packets/PacketDrawState Packets/PacketChatMessage Packets/PacketCharGen
Packets/PacketAttribute Packets/PacketSkill Packets/PacketHandshake Packets/PacketGUIBoxes Packets/PacketClass
Packets/PacketTime)
add_component_dir (fallback
fallback validate

@ -6,7 +6,6 @@
#include <components/openmw-mp/NetworkMessages.hpp>
#include <components/esm/creaturestats.hpp>
#include "PacketAttributesAndStats.hpp"
using namespace mwmp;

@ -10,7 +10,6 @@
#include "Packets/PacketPosition.hpp"
#include "Packets/PacketBaseInfo.hpp"
#include "components/openmw-mp/Packets/PacketEquiped.hpp"
#include "Packets/PacketAttributesAndStats.hpp"
#include "Packets/PacketAttack.hpp"
#include "Packets/PacketMainStats.hpp"
#include "Packets/PacketResurrect.hpp"
@ -44,7 +43,6 @@ mwmp::PacketsController::PacketsController(RakNet::RakPeerInterface *peer)
AddPacket<PacketBaseInfo>(&packets, peer);
AddPacket<PacketEquiped>(&packets, peer);
AddPacket<PacketAttributesAndStats>(&packets, peer);
AddPacket<PacketAttack>(&packets, peer);
AddPacket<PacketMainStats>(&packets, peer);
AddPacket<PacketResurrect>(&packets, peer);

Loading…
Cancel
Save