Explorar o código

修改编译问题

zengminguo %!s(int64=2) %!d(string=hai) anos
pai
achega
0a1d42b23a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      card_car.cpp

+ 1 - 1
card_car.cpp

@@ -89,7 +89,7 @@ void car::handle_anti_coll(const point& pt, const int& sid)
             int d = (c.second->m_timeval >= m_timeval ? (c.second->m_timeval - m_timeval) : (m_timeval - c.second->m_timeval)) / 1000.0;
             s = ((c.second->m_timeval >= m_timeval ? (c.second->m_timeval - m_timeval) : (m_timeval - c.second->m_timeval)) /1000.0 <= 30);
             //float dist = pt.dist(*c.second);
-			float dist = pt.dist(*c.second->m_v_point);
+			float dist = pt.dist(c.second->m_v_point);
             if(dist < k.second && s){
                 int call_level = 5 - k.first;
                 log_info("[anti_coll] distance=%.3f, level=%d, thre_value=%.3f, time_diff=%d", dist, call_level, k.second, d);