Fix CRLF.
--HG-- branch : trunk
This commit is contained in:
+31
-31
@@ -938,37 +938,37 @@ void WorldSession::SendAddonsInfo()
|
|||||||
SendPacket(&data);
|
SendPacket(&data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void WorldSession::HandleEnterPlayerVehicle(WorldPacket &data)
|
void WorldSession::HandleEnterPlayerVehicle(WorldPacket &data)
|
||||||
{
|
{
|
||||||
// Read guid
|
// Read guid
|
||||||
uint64 guid;
|
uint64 guid;
|
||||||
data >> guid;
|
data >> guid;
|
||||||
|
|
||||||
if(Player* pl=ObjectAccessor::FindPlayer(guid))
|
if(Player* pl=ObjectAccessor::FindPlayer(guid))
|
||||||
{
|
{
|
||||||
if (!pl->GetVehicleKit())
|
if (!pl->GetVehicleKit())
|
||||||
return;
|
return;
|
||||||
if (!pl->IsInRaidWith(_player))
|
if (!pl->IsInRaidWith(_player))
|
||||||
return;
|
return;
|
||||||
if(!pl->IsWithinDistInMap(_player,INTERACTION_DISTANCE))
|
if(!pl->IsWithinDistInMap(_player,INTERACTION_DISTANCE))
|
||||||
return;
|
return;
|
||||||
_player->EnterVehicle(pl);
|
_player->EnterVehicle(pl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::HandleEjectPasenger(WorldPacket &data)
|
void WorldSession::HandleEjectPasenger(WorldPacket &data)
|
||||||
{
|
{
|
||||||
if(data.GetOpcode()==CMSG_EJECT_PASSENGER)
|
if(data.GetOpcode()==CMSG_EJECT_PASSENGER)
|
||||||
{
|
{
|
||||||
if(Vehicle* Vv= _player->GetVehicleKit())
|
if(Vehicle* Vv= _player->GetVehicleKit())
|
||||||
{
|
{
|
||||||
uint64 guid;
|
uint64 guid;
|
||||||
data >> guid;
|
data >> guid;
|
||||||
if(Player* Pl=ObjectAccessor::FindPlayer(guid))
|
if(Player* Pl=ObjectAccessor::FindPlayer(guid))
|
||||||
Pl->ExitVehicle();
|
Pl->ExitVehicle();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::SetPlayer( Player *plr )
|
void WorldSession::SetPlayer( Player *plr )
|
||||||
|
|||||||
Reference in New Issue
Block a user