mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[7730] Some optimizantion and code style.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
This commit is contained in:
parent
a4373c887d
commit
8144f30199
69 changed files with 536 additions and 536 deletions
|
|
@ -1923,7 +1923,7 @@ void Map::SendInitTransports( Player * player )
|
|||
|
||||
bool hasTransport = false;
|
||||
|
||||
for (MapManager::TransportSet::iterator i = tset.begin(); i != tset.end(); ++i)
|
||||
for (MapManager::TransportSet::const_iterator i = tset.begin(); i != tset.end(); ++i)
|
||||
{
|
||||
// send data for current transport in other place
|
||||
if((*i) != player->GetTransport() && (*i)->GetMapId()==i_id)
|
||||
|
|
@ -1952,7 +1952,7 @@ void Map::SendRemoveTransports( Player * player )
|
|||
MapManager::TransportSet& tset = tmap[player->GetMapId()];
|
||||
|
||||
// except used transport
|
||||
for (MapManager::TransportSet::iterator i = tset.begin(); i != tset.end(); ++i)
|
||||
for (MapManager::TransportSet::const_iterator i = tset.begin(); i != tset.end(); ++i)
|
||||
if((*i) != player->GetTransport() && (*i)->GetMapId()!=i_id)
|
||||
(*i)->BuildOutOfRangeUpdateBlock(&transData);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue