瀏覽代碼

盲区时间修改为1min,优化历史轨迹

lixioayao 6 年之前
父節點
當前提交
029cd4a69b
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      card_base.h
  2. 1 1
      his_location.h

+ 1 - 1
card_base.h

@@ -7,7 +7,7 @@
 #include "point.h"
 #include "common.h"
 
-#define CARD_LOST_TIME_OUT (30*1000)
+#define CARD_LOST_TIME_OUT (60*1000)
 
 struct task;
 template<typename T> struct zloop;

+ 1 - 1
his_location.h

@@ -76,7 +76,7 @@ struct location_card
 		  return false;
 		point p=m_d.back().p;
 
-		//if(point::eq(p.x,pt.x,0.2) && point::eq(p.y,pt.y,0.2)) return false;
+		if(point::eq(p.x,pt.x,0.2) && point::eq(p.y,pt.y,0.2)) return false;
         double dis1=m_p.dist(pt);
         if(dis1<1.5)
             return false;