mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
Allow arena/battleground maps to be valid without an entry in the instance template
This commit is contained in:
parent
cd6717316e
commit
a0edf095d9
1 changed files with 2 additions and 1 deletions
|
|
@ -279,7 +279,8 @@ bool MapManager::ExistMapAndVMap(uint32 mapid, float x,float y)
|
||||||
bool MapManager::IsValidMAP(uint32 mapid)
|
bool MapManager::IsValidMAP(uint32 mapid)
|
||||||
{
|
{
|
||||||
MapEntry const* mEntry = sMapStore.LookupEntry(mapid);
|
MapEntry const* mEntry = sMapStore.LookupEntry(mapid);
|
||||||
return mEntry && (!mEntry->Instanceable() || objmgr.GetInstanceTemplate(mapid));
|
return mEntry && (!mEntry->IsDungeon() || objmgr.GetInstanceTemplate(mapid));
|
||||||
|
// TODO: add check for battleground template
|
||||||
}
|
}
|
||||||
|
|
||||||
void MapManager::LoadGrid(int mapid, float x, float y, const WorldObject* obj, bool no_unload)
|
void MapManager::LoadGrid(int mapid, float x, float y, const WorldObject* obj, bool no_unload)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue