mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
Replace some MapManager::Instance().GetMap() calls with WorldObject::GetMap()
This commit is contained in:
parent
c37cfd0c2f
commit
ac00eee418
23 changed files with 105 additions and 105 deletions
|
|
@ -105,7 +105,7 @@ void MapManager::LoadTransports()
|
|||
|
||||
//If we someday decide to use the grid to track transports, here:
|
||||
//MapManager::Instance().LoadGrid(mapid,x,y,true);
|
||||
//MapManager::Instance().GetMap(t->GetMapId())->Add<GameObject>((GameObject *)t);
|
||||
//t->GetMap()->Add<GameObject>((GameObject *)t);
|
||||
++count;
|
||||
} while(result->NextRow());
|
||||
delete result;
|
||||
|
|
@ -430,11 +430,11 @@ Transport::WayPointMap::iterator Transport::GetNextWayPoint()
|
|||
|
||||
void Transport::TeleportTransport(uint32 newMapid, float x, float y, float z)
|
||||
{
|
||||
//MapManager::Instance().GetMap(oldMapid)->Remove((GameObject *)this, false);
|
||||
//GetMap()->Remove((GameObject *)this, false);
|
||||
SetMapId(newMapid);
|
||||
//MapManager::Instance().LoadGrid(newMapid,x,y,true);
|
||||
Relocate(x, y, z);
|
||||
//MapManager::Instance().GetMap(newMapid)->Add<GameObject>((GameObject *)this);
|
||||
//GetMap()->Add<GameObject>((GameObject *)this);
|
||||
|
||||
for(PlayerSet::iterator itr = m_passengers.begin(); itr != m_passengers.end();)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue