mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 07:37:02 +00:00
[11129] Added WorldMap/WorldPersistentState subclass for non-instanceable maps.
This let have symmetric Map/MapPersistentState (sub)classes hierarchy.
This commit is contained in:
parent
98aff742c1
commit
6d26ec0e7f
6 changed files with 62 additions and 26 deletions
|
|
@ -108,11 +108,11 @@ Map* MapManager::CreateMap(uint32 id, const WorldObject* obj)
|
|||
}
|
||||
else
|
||||
{
|
||||
//create regular Continent map
|
||||
//create regular non-instanceable map
|
||||
m = FindMap(id);
|
||||
if( m == NULL )
|
||||
{
|
||||
m = new Map(id, i_gridCleanUpDelay, 0, REGULAR_DIFFICULTY);
|
||||
m = new WorldMap(id, i_gridCleanUpDelay);
|
||||
//add map into container
|
||||
i_maps[MapID(id)] = m;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue