forked from teamnwah/openmw-tes3coop
[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)
|
if (ptrNpcStats->isDead() && !isDead)
|
||||||
{
|
{
|
||||||
creatureStats.mDead = true;
|
creatureStats.mDead = true;
|
||||||
RakNet::BitStream bs;
|
|
||||||
|
|
||||||
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Sending ID_PLAYER_DEATH to server about myself");
|
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Sending ID_PLAYER_DEATH to server about myself");
|
||||||
getNetworking()->getPlayerPacket(ID_PLAYER_DEATH)->Send(this);
|
getNetworking()->getPlayerPacket(ID_PLAYER_DEATH)->Send(this);
|
||||||
|
@ -622,7 +621,6 @@ void LocalPlayer::updateDrawStateAndFlags(bool forceUpdate)
|
||||||
if (isJumping)
|
if (isJumping)
|
||||||
mwmp::Main::get().getLocalPlayer()->updatePosition(true); // fix position after jump;
|
mwmp::Main::get().getLocalPlayer()->updatePosition(true); // fix position after jump;
|
||||||
|
|
||||||
RakNet::BitStream bs;
|
|
||||||
getNetworking()->getPlayerPacket(ID_PLAYER_DRAWSTATE)->Send(this);
|
getNetworking()->getPlayerPacket(ID_PLAYER_DRAWSTATE)->Send(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1096,7 +1094,6 @@ void LocalPlayer::sendAttack(Attack::TYPE type)
|
||||||
|
|
||||||
attack.type = type;
|
attack.type = type;
|
||||||
attack.pressed = false;
|
attack.pressed = false;
|
||||||
RakNet::BitStream bs;
|
|
||||||
getNetworking()->getPlayerPacket(ID_PLAYER_ATTACK)->Send(this);
|
getNetworking()->getPlayerPacket(ID_PLAYER_ATTACK)->Send(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1167,6 +1164,5 @@ void LocalPlayer::prepareAttack(Attack::TYPE type, bool state)
|
||||||
attack.target = RakNet::RakNetGUID();
|
attack.target = RakNet::RakNetGUID();
|
||||||
attack.attacker = guid;
|
attack.attacker = guid;
|
||||||
|
|
||||||
RakNet::BitStream bs;
|
|
||||||
getNetworking()->getPlayerPacket(ID_PLAYER_ATTACK)->Send(this);
|
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)
|
void Networking::connect(const std::string &ip, unsigned short port)
|
||||||
{
|
{
|
||||||
RakNet::SystemAddress master;
|
RakNet::SystemAddress master;
|
||||||
|
|
|
@ -25,7 +25,6 @@ namespace mwmp
|
||||||
~Networking();
|
~Networking();
|
||||||
void connect(const std::string& ip, unsigned short port);
|
void connect(const std::string& ip, unsigned short port);
|
||||||
void update();
|
void update();
|
||||||
void sendData(RakNet::BitStream *bitStream);
|
|
||||||
|
|
||||||
PlayerPacket *getPlayerPacket(RakNet::MessageID id);
|
PlayerPacket *getPlayerPacket(RakNet::MessageID id);
|
||||||
WorldPacket *getWorldPacket(RakNet::MessageID id);
|
WorldPacket *getWorldPacket(RakNet::MessageID id);
|
||||||
|
|
Loading…
Reference in a new issue