This commit is contained in:
aozhiwei 2020-07-27 11:04:48 +08:00
parent 94379056cf
commit f744e32e87
2 changed files with 11 additions and 0 deletions

View File

@ -12,6 +12,12 @@ void MapMgr::Init()
map_instance->Init();
instance_hash_[map_instance->map_id] = map_instance;
}
{
MapInstance* map_instance = new MapInstance();
map_instance->map_id = 3001;
map_instance->Init();
instance_hash_[map_instance->map_id] = map_instance;
}
}
void MapMgr::UnInit()
@ -26,6 +32,9 @@ void MapMgr::UnInit()
void MapMgr::AttachRoom(Room* room, RoomInitInfo& init_info)
{
MapInstance* map_instance = GetMapInstance(2001);
if (init_info.room_mode == kZombieMode) {
map_instance = GetMapInstance(3001);
}
if (!map_instance) {
abort();
}

View File

@ -1816,6 +1816,7 @@ void Room::SecondRandPoint()
}
}
#ifdef DEBUG
#if 0
if (GetRoomMode() == kZombieMode) {
BornPoint* born_point = nullptr;
int i = 0;
@ -1840,6 +1841,7 @@ void Room::SecondRandPoint()
}
}
}
#endif
#endif
}