mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
* Small clanup in Map.cpp
This commit is contained in:
parent
a4d3269140
commit
8c6c66afe0
1 changed files with 8 additions and 8 deletions
|
|
@ -577,14 +577,6 @@ void Map::Update(const uint32 &t_diff)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void InstanceMap::Update(const uint32& t_diff)
|
|
||||||
{
|
|
||||||
Map::Update(t_diff);
|
|
||||||
|
|
||||||
if(i_data)
|
|
||||||
i_data->Update(t_diff);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Map::Remove(Player *player, bool remove)
|
void Map::Remove(Player *player, bool remove)
|
||||||
{
|
{
|
||||||
CellPair p = MaNGOS::ComputeCellPair(player->GetPositionX(), player->GetPositionY());
|
CellPair p = MaNGOS::ComputeCellPair(player->GetPositionX(), player->GetPositionY());
|
||||||
|
|
@ -1547,6 +1539,14 @@ bool InstanceMap::Add(Player *player)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void InstanceMap::Update(const uint32& t_diff)
|
||||||
|
{
|
||||||
|
Map::Update(t_diff);
|
||||||
|
|
||||||
|
if(i_data)
|
||||||
|
i_data->Update(t_diff);
|
||||||
|
}
|
||||||
|
|
||||||
void InstanceMap::Remove(Player *player, bool remove)
|
void InstanceMap::Remove(Player *player, bool remove)
|
||||||
{
|
{
|
||||||
sLog.outDetail("MAP: Removing player '%s' from instance '%u' of map '%s' before relocating to other map", player->GetName(), GetInstanceId(), GetMapName());
|
sLog.outDetail("MAP: Removing player '%s' from instance '%u' of map '%s' before relocating to other map", player->GetName(), GetInstanceId(), GetMapName());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue