mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7598] Implement proper hide out of range (at another map) transports. Remove duplicate name field.
This commit is contained in:
parent
1ec8e1f24d
commit
836d356d67
4 changed files with 54 additions and 19 deletions
|
|
@ -1875,7 +1875,8 @@ void Map::SendInitTransports( Player * player )
|
|||
|
||||
for (MapManager::TransportSet::iterator i = tset.begin(); i != tset.end(); ++i)
|
||||
{
|
||||
if((*i) != player->GetTransport()) // send data for current transport in other place
|
||||
// send data for current transport in other place
|
||||
if((*i) != player->GetTransport() && (*i)->GetMapId()==i_id)
|
||||
{
|
||||
hasTransport = true;
|
||||
(*i)->BuildCreateUpdateBlockForPlayer(&transData, player);
|
||||
|
|
@ -1902,7 +1903,7 @@ void Map::SendRemoveTransports( Player * player )
|
|||
|
||||
// except used transport
|
||||
for (MapManager::TransportSet::iterator i = tset.begin(); i != tset.end(); ++i)
|
||||
if(player->GetTransport() != (*i))
|
||||
if((*i) != player->GetTransport() && (*i)->GetMapId()!=i_id)
|
||||
(*i)->BuildOutOfRangeUpdateBlock(&transData);
|
||||
|
||||
WorldPacket packet;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue