mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 04:12:40 +01:00
Core/Maps: dropped Garrison implementation
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
#include "Containers.h"
|
||||
#include "DatabaseEnv.h"
|
||||
#include "DB2Stores.h"
|
||||
#include "GarrisonMap.h"
|
||||
#include "Group.h"
|
||||
#include "InstanceLockMgr.h"
|
||||
#include "Log.h"
|
||||
@@ -132,14 +131,6 @@ BattlegroundMap* MapManager::CreateBattleground(uint32 mapId, uint32 instanceId,
|
||||
return map;
|
||||
}
|
||||
|
||||
GarrisonMap* MapManager::CreateGarrison(uint32 mapId, uint32 instanceId, Player* owner)
|
||||
{
|
||||
GarrisonMap* map = new GarrisonMap(mapId, i_gridCleanUpDelay, instanceId, owner->GetGUID());
|
||||
ASSERT(map->IsGarrison());
|
||||
map->InitSpawnGroupState();
|
||||
return map;
|
||||
}
|
||||
|
||||
/*
|
||||
- return the right instance for the object, based on its InstanceId
|
||||
- create the instance if it's not created already
|
||||
@@ -227,13 +218,6 @@ Map* MapManager::CreateMap(uint32 mapId, Player* player)
|
||||
player->SetRecentInstance(mapId, newInstanceId);
|
||||
}
|
||||
}
|
||||
else if (entry->IsGarrison())
|
||||
{
|
||||
newInstanceId = player->GetGUID().GetCounter();
|
||||
map = FindMap_i(mapId, newInstanceId);
|
||||
if (!map)
|
||||
map = CreateGarrison(mapId, newInstanceId, player);
|
||||
}
|
||||
else
|
||||
{
|
||||
newInstanceId = 0;
|
||||
|
||||
Reference in New Issue
Block a user