mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
Removed useless code.
This commit is contained in:
parent
ce4916d7e5
commit
3097dcda2b
2 changed files with 0 additions and 29 deletions
|
|
@ -1537,7 +1537,6 @@ void WorldSession::HandleSetTaxiBenchmarkOpcode( WorldPacket & recv_data )
|
||||||
|
|
||||||
void WorldSession::HandleQueryInspectAchievements( WorldPacket & recv_data )
|
void WorldSession::HandleQueryInspectAchievements( WorldPacket & recv_data )
|
||||||
{
|
{
|
||||||
|
|
||||||
uint64 guid;
|
uint64 guid;
|
||||||
if(!recv_data.readPackGUID(guid))
|
if(!recv_data.readPackGUID(guid))
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -231,13 +231,6 @@ void WorldSession::HandleMovementOpcodes( WorldPacket & recv_data )
|
||||||
ReadMovementInfo(recv_data, &movementInfo);
|
ReadMovementInfo(recv_data, &movementInfo);
|
||||||
/*----------------*/
|
/*----------------*/
|
||||||
|
|
||||||
if(recv_data.size() != recv_data.rpos())
|
|
||||||
{
|
|
||||||
sLog.outError("MovementHandler: player %s (guid %d, account %u) sent a packet (opcode %u) that is " SIZEFMTD " bytes larger than it should be. Kicked as cheater.", _player->GetName(), _player->GetGUIDLow(), _player->GetSession()->GetAccountId(), opcode, recv_data.size() - recv_data.rpos());
|
|
||||||
KickPlayer();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!MaNGOS::IsValidMapCoord(movementInfo.x, movementInfo.y, movementInfo.z, movementInfo.o))
|
if (!MaNGOS::IsValidMapCoord(movementInfo.x, movementInfo.y, movementInfo.z, movementInfo.o))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
@ -372,13 +365,6 @@ void WorldSession::HandleForceSpeedChangeAck(WorldPacket &recv_data)
|
||||||
recv_data >> newspeed;
|
recv_data >> newspeed;
|
||||||
/*----------------*/
|
/*----------------*/
|
||||||
|
|
||||||
if(recv_data.size() != recv_data.rpos())
|
|
||||||
{
|
|
||||||
sLog.outError("MovementHandler: player %s (guid %d, account %u) sent a packet (opcode %u) that is " SIZEFMTD " bytes larger than it should be. Kicked as cheater.", _player->GetName(), _player->GetGUIDLow(), _player->GetSession()->GetAccountId(), opcode, recv_data.size() - recv_data.rpos());
|
|
||||||
KickPlayer();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// client ACK send one packet for mounted/run case and need skip all except last from its
|
// client ACK send one packet for mounted/run case and need skip all except last from its
|
||||||
// in other cases anti-cheat check can be fail in false case
|
// in other cases anti-cheat check can be fail in false case
|
||||||
UnitMoveType move_type;
|
UnitMoveType move_type;
|
||||||
|
|
@ -463,13 +449,6 @@ void WorldSession::HandleMoveNotActiveMover(WorldPacket &recv_data)
|
||||||
mi.guid = old_mover_guid;
|
mi.guid = old_mover_guid;
|
||||||
ReadMovementInfo(recv_data, &mi);
|
ReadMovementInfo(recv_data, &mi);
|
||||||
|
|
||||||
if(recv_data.size() != recv_data.rpos())
|
|
||||||
{
|
|
||||||
sLog.outError("MovementHandler: player %s (guid %d, account %u) sent a packet (opcode %u) that is " SIZEFMTD " bytes larger than it should be. Kicked as cheater.", _player->GetName(), _player->GetGUIDLow(), _player->GetSession()->GetAccountId(), recv_data.GetOpcode(), recv_data.size() - recv_data.rpos());
|
|
||||||
KickPlayer();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
_player->m_movementInfo = mi;
|
_player->m_movementInfo = mi;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -492,13 +471,6 @@ void WorldSession::HandleDismissControlledVehicle(WorldPacket &recv_data)
|
||||||
mi.guid = guid;
|
mi.guid = guid;
|
||||||
ReadMovementInfo(recv_data, &mi);
|
ReadMovementInfo(recv_data, &mi);
|
||||||
|
|
||||||
if(recv_data.size() != recv_data.rpos())
|
|
||||||
{
|
|
||||||
sLog.outError("MovementHandler: player %s (guid %d, account %u) sent a packet (opcode %u) that is " SIZEFMTD " bytes larger than it should be. Kicked as cheater.", _player->GetName(), _player->GetGUIDLow(), _player->GetSession()->GetAccountId(), recv_data.GetOpcode(), recv_data.size() - recv_data.rpos());
|
|
||||||
KickPlayer();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
_player->m_movementInfo = mi;
|
_player->m_movementInfo = mi;
|
||||||
|
|
||||||
// using charm guid, because we don't have vehicle guid...
|
// using charm guid, because we don't have vehicle guid...
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue