Commit 78c09657 authored by haoshuang's avatar haoshuang

地图初始化分开构造和加载

parent b89ab227
......@@ -52,8 +52,9 @@ void JfxEvents::Init()
{
std::string dir = m_cfg.pro_path + m_cfg.pro_dir;
SDK_LOG(SDK_INFO, "m_cfg.pro_dir = %s, m_cfg.map_cfg- = %s", dir.c_str(), m_cfg.map_cfg.c_str());
m_OfflineMap.reset(new jf::MapInterface(dir, m_cfg.map_cfg));
//m_OfflineMap.reset(new jf::MapInterface(dir, m_cfg.map_cfg));
m_OfflineMap.reset(new jf::MapInterface());
m_OfflineMap->Init(dir,m_cfg.map_cfg);
m_Queue.set_max_num_items(1);
m_sendQueue.set_max_num_items(10);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment