mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-19 17:09:40 +00:00
[Client] Remove now unused sendData() and BitStream declarations
This commit is contained in:
parent
cf6de6c474
commit
c4b11a1251
3 changed files with 0 additions and 10 deletions
|
@ -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…
Reference in a new issue