[Client] Remove now unused sendData() and BitStream declarations

0.6.1
David Cernat 8 years ago
parent cf6de6c474
commit c4b11a1251

@ -546,7 +546,6 @@ void LocalPlayer::updateDeadState(bool forceUpdate)
if (ptrNpcStats->isDead() && !isDead)
{
creatureStats.mDead = true;
RakNet::BitStream bs;
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Sending ID_PLAYER_DEATH to server about myself");
getNetworking()->getPlayerPacket(ID_PLAYER_DEATH)->Send(this);
@ -622,7 +621,6 @@ void LocalPlayer::updateDrawStateAndFlags(bool forceUpdate)
if (isJumping)
mwmp::Main::get().getLocalPlayer()->updatePosition(true); // fix position after jump;
RakNet::BitStream bs;
getNetworking()->getPlayerPacket(ID_PLAYER_DRAWSTATE)->Send(this);
}
}
@ -1096,7 +1094,6 @@ void LocalPlayer::sendAttack(Attack::TYPE type)
attack.type = type;
attack.pressed = false;
RakNet::BitStream bs;
getNetworking()->getPlayerPacket(ID_PLAYER_ATTACK)->Send(this);
}
@ -1167,6 +1164,5 @@ void LocalPlayer::prepareAttack(Attack::TYPE type, bool state)
attack.target = RakNet::RakNetGUID();
attack.attacker = guid;
RakNet::BitStream bs;
getNetworking()->getPlayerPacket(ID_PLAYER_ATTACK)->Send(this);
}

@ -101,11 +101,6 @@ void Networking::update()
}
}
void Networking::sendData(RakNet::BitStream *bs)
{
peer->Send(bs, HIGH_PRIORITY, RELIABLE_ORDERED, 0, serverAddr, false);
}
void Networking::connect(const std::string &ip, unsigned short port)
{
RakNet::SystemAddress master;

@ -25,7 +25,6 @@ namespace mwmp
~Networking();
void connect(const std::string& ip, unsigned short port);
void update();
void sendData(RakNet::BitStream *bitStream);
PlayerPacket *getPlayerPacket(RakNet::MessageID id);
WorldPacket *getWorldPacket(RakNet::MessageID id);

Loading…
Cancel
Save