|
@@ -539,7 +539,6 @@ void area_tool::on_point(const std::shared_ptr<card_location_base>& c,const poin
|
|
|
return;
|
|
|
int special_area=-1;
|
|
|
std::vector<std::shared_ptr<area>> areas=area_list::instance()->get_area(m_site,c, pt,special_area);
|
|
|
-
|
|
|
if(special_area != -1)
|
|
|
{
|
|
|
areas.clear();
|
|
@@ -557,7 +556,6 @@ void area_tool::on_point(const std::shared_ptr<card_location_base>& c,const poin
|
|
|
auto a1=areas.begin() ,ae=areas.end();
|
|
|
|
|
|
std::vector<std::shared_ptr<area_hover>> nlist;
|
|
|
-
|
|
|
while (c1!=ce && a1!=ae)
|
|
|
{
|
|
|
if ((*c1)->id()<(*a1)->id()) //离开区域
|
|
@@ -692,7 +690,6 @@ void area_tool::set_area_info(int mapid,int areaid,const point &pt,uint64_t t)
|
|
|
int landmark_id = std::get<0>(lm);
|
|
|
int landmark_dir = std::get<1>(lm);
|
|
|
double landmark_dis = std::get<2>(lm)*m_scale;
|
|
|
- //log_info("landmark:%d %d %.2f,(%.2f,%.2f),%f",landmark_id,landmark_dir,landmark_dis,pt.x,pt.y,m_scale);
|
|
|
std::tuple<int,int,int,double,uint64_t> tinfo=std::make_tuple(areaid,landmark_id,landmark_dir,landmark_dis,t);
|
|
|
m_area_info[areaid].swap(tinfo);
|
|
|
}
|