diff --git a/server/gameserver/mapmgr.cc b/server/gameserver/mapmgr.cc index 0e40afa..2ad0bbb 100644 --- a/server/gameserver/mapmgr.cc +++ b/server/gameserver/mapmgr.cc @@ -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(); } diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index 2ff96e7..0b815c4 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -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 }