From 03984685e5db0982c1f759e57a53f9528bc0c4c0 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Tue, 28 Feb 2017 12:35:51 +0200 Subject: [PATCH] [Client] Remove unnecessary type specifiers --- apps/openmw/mwmp/LocalPlayer.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/openmw/mwmp/LocalPlayer.cpp b/apps/openmw/mwmp/LocalPlayer.cpp index 9b5b29608..17e070f26 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -357,7 +357,7 @@ void LocalPlayer::updateCell(bool forceUpdate) updatePosition(true); RakNet::BitStream bs; - getNetworking()->getPlayerPacket((RakNet::MessageID) ID_PLAYER_CELL_CHANGE)->Packet(&bs, this, true); + getNetworking()->getPlayerPacket(ID_PLAYER_CELL_CHANGE)->Packet(&bs, this, true); getNetworking()->sendData(&bs); // Also force an update to skills (to send all progress to skill increases) @@ -424,7 +424,7 @@ void LocalPlayer::updateEquipment(bool forceUpdate) { RakNet::BitStream bs; bs.ResetWritePointer(); - getNetworking()->getPlayerPacket((RakNet::MessageID) ID_PLAYER_EQUIPMENT)->Packet(&bs, this, true); + getNetworking()->getPlayerPacket(ID_PLAYER_EQUIPMENT)->Packet(&bs, this, true); getNetworking()->sendData(&bs); equipChanged = false; } @@ -525,7 +525,7 @@ void LocalPlayer::updateAttackState(bool forceUpdate) attack.refid = spell; /*RakNet::BitStream bs; - getNetworking()->getPlayerPacket((RakNet::MessageID) ID_PLAYER_ATTACK)->Packet(&bs, this, true); + getNetworking()->getPlayerPacket(ID_PLAYER_ATTACK)->Packet(&bs, this, true); getNetworking()->SendData(&bs);*/ } else if (state == MWMechanics::DrawState_Weapon) @@ -631,7 +631,7 @@ void LocalPlayer::updateDrawStateAndFlags(bool forceUpdate) mwmp::Main::get().getLocalPlayer()->updatePosition(true); // fix position after jump; RakNet::BitStream bs; - getNetworking()->getPlayerPacket((RakNet::MessageID) ID_PLAYER_DRAWSTATE)->Packet(&bs, this, true); + getNetworking()->getPlayerPacket(ID_PLAYER_DRAWSTATE)->Packet(&bs, this, true); getNetworking()->sendData(&bs); } } @@ -1106,7 +1106,7 @@ void LocalPlayer::sendAttack(Attack::TYPE type) attack.type = type; attack.pressed = false; RakNet::BitStream bs; - getNetworking()->getPlayerPacket((RakNet::MessageID) ID_PLAYER_ATTACK)->Packet(&bs, this, true); + getNetworking()->getPlayerPacket(ID_PLAYER_ATTACK)->Packet(&bs, this, true); getNetworking()->sendData(&bs); } @@ -1178,6 +1178,6 @@ void LocalPlayer::prepareAttack(Attack::TYPE type, bool state) attack.attacker = guid; RakNet::BitStream bs; - getNetworking()->getPlayerPacket((RakNet::MessageID) ID_PLAYER_ATTACK)->Packet(&bs, this, true); + getNetworking()->getPlayerPacket(ID_PLAYER_ATTACK)->Packet(&bs, this, true); getNetworking()->sendData(&bs); }