[General] Remove unused packet placeholder ID_OBJECT_HEALTH

pull/163/head
David Cernat 8 years ago
parent 1198caddf6
commit 27c4015f50

@ -537,17 +537,6 @@ void Networking::processWorldPacket(RakNet::Packet *packet)
break;
}
case ID_OBJECT_HEALTH:
{
LOG_MESSAGE_SIMPLE(Log::LOG_WARN, "Received ID_OBJECT_HEALTH from %s",
player->npc.mName.c_str());
myPacket->Read(baseEvent);
myPacket->Send(baseEvent, true);
break;
}
case ID_DOOR_STATE:
{
LOG_MESSAGE_SIMPLE(Log::LOG_WARN, "Received ID_DOOR_STATE from %s",

@ -164,8 +164,8 @@ add_component_dir (openmw-mp
Packets/Player/PacketGUIBoxes Packets/Player/PacketTime
Packets/World/PacketObjectDelete Packets/World/PacketObjectPlace Packets/World/PacketObjectScale
Packets/World/PacketObjectHealth Packets/World/PacketObjectLock Packets/World/PacketObjectUnlock
Packets/World/PacketObjectMove Packets/World/PacketObjectRotate Packets/World/PacketObjectAnimPlay
Packets/World/PacketObjectLock Packets/World/PacketObjectUnlock Packets/World/PacketObjectMove
Packets/World/PacketObjectRotate Packets/World/PacketObjectAnimPlay
Packets/World/PacketContainer Packets/World/PacketDoorState Packets/World/PacketMusicPlay
Packets/World/PacketVideoPlay

@ -5,7 +5,6 @@
#include "../Packets/World/PacketObjectDelete.hpp"
#include "../Packets/World/PacketObjectPlace.hpp"
#include "../Packets/World/PacketObjectScale.hpp"
#include "../Packets/World/PacketObjectHealth.hpp"
#include "../Packets/World/PacketObjectLock.hpp"
#include "../Packets/World/PacketObjectUnlock.hpp"
#include "../Packets/World/PacketObjectMove.hpp"
@ -37,7 +36,6 @@ mwmp::WorldPacketController::WorldPacketController(RakNet::RakPeerInterface *pee
AddPacket<PacketObjectDelete>(&packets, peer);
AddPacket<PacketObjectPlace>(&packets, peer);
AddPacket<PacketObjectScale>(&packets, peer);
AddPacket<PacketObjectHealth>(&packets, peer);
AddPacket<PacketObjectLock>(&packets, peer);
AddPacket<PacketObjectUnlock>(&packets, peer);
AddPacket<PacketObjectMove>(&packets, peer);

@ -42,7 +42,6 @@ enum GameMessages
ID_OBJECT_PLACE,
ID_OBJECT_DELETE,
ID_OBJECT_SCALE,
ID_OBJECT_HEALTH,
ID_OBJECT_LOCK,
ID_OBJECT_UNLOCK,
ID_OBJECT_MOVE,

@ -1,14 +0,0 @@
#include <components/openmw-mp/NetworkMessages.hpp>
#include "PacketObjectHealth.hpp"
using namespace mwmp;
PacketObjectHealth::PacketObjectHealth(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
{
packetID = ID_OBJECT_HEALTH;
}
void PacketObjectHealth::Packet(RakNet::BitStream *bs, BaseEvent *event, bool send)
{
WorldPacket::Packet(bs, event, send);
}

@ -1,17 +0,0 @@
#ifndef OPENMW_PACKETOBJECTHEALTH_HPP
#define OPENMW_PACKETOBJECTHEALTH_HPP
#include <components/openmw-mp/Packets/World/WorldPacket.hpp>
namespace mwmp
{
class PacketObjectHealth : public WorldPacket
{
public:
PacketObjectHealth(RakNet::RakPeerInterface *peer);
virtual void Packet(RakNet::BitStream *bs, BaseEvent *event, bool send);
};
}
#endif //OPENMW_PACKETOBJECTHEALTH_HPP
Loading…
Cancel
Save