diff --git a/apps/openmw/mwmp/LocalPlayer.cpp b/apps/openmw/mwmp/LocalPlayer.cpp index d00e3a0c2..1e45c9206 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -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); } diff --git a/apps/openmw/mwmp/Networking.cpp b/apps/openmw/mwmp/Networking.cpp index 9251e56f7..90e6ccb1d 100644 --- a/apps/openmw/mwmp/Networking.cpp +++ b/apps/openmw/mwmp/Networking.cpp @@ -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; diff --git a/apps/openmw/mwmp/Networking.hpp b/apps/openmw/mwmp/Networking.hpp index 4d6079333..13dffe96d 100644 --- a/apps/openmw/mwmp/Networking.hpp +++ b/apps/openmw/mwmp/Networking.hpp @@ -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);