Browse Source

解决人卡前端显示出现地图外的bug

lixioayao 5 years ago
parent
commit
6977f9cd35
1 changed files with 3 additions and 0 deletions
  1. 3 0
      select_tool.h

+ 3 - 0
select_tool.h

@@ -215,6 +215,9 @@ struct person_point_filter:select_point_object
 	virtual bool revise_by_history(point & pt, const site*sit, int64_t timestamp)
 	{
 		//log_info("lemon test revise preson:cardid:%d sit:%d sitid:%d  %0X",m_d(0).m_cid,sit->m_id,m_d(0).m_sid,sit);
+		if(!card_path::inst().is_at_path(pt))	//if point not on the path
+          return true;
+
 		point dstp = sit->get_dstp(pt);
 		if(dstp.empty())
 		{