Do not allow base map be accessed from outside if map is instanceable.
This commit is contained in:
1 parent
0eb193f2b4
commit
f091360940
4 files changed
+17
-7
No files matched your search
@@ -119,6 +119,14 @@ Map* MapManager::CreateBaseMap(uint32 id)
|
||||
return m;
|
||||
}
|
||||
|
||||
Map* MapManager::FindBaseNonInstanceMap(uint32 mapId) const
|
||||
{
|
||||
Map* map = FindBaseMap(mapId);
|
||||
if(map && map->Instanceable())
|
||||
return NULL;
|
||||
return map;
|
||||
}
|
||||
|
||||
Map* MapManager::CreateMap(uint32 id, Player* player)
|
||||
{
|
||||
Map* m = CreateBaseMap(id);
|
||||
|
||||
Reference in new issue
Block a user