|
@@ -113,9 +113,10 @@ void car::handle_anti_coll(const point& pt, const int& sid)
|
|
|
}
|
|
|
|
|
|
std::string desc = "";
|
|
|
- if(cards.size() == 0){
|
|
|
+ uint64_t id = tool_other::type_id_to_u64(m_type, m_id);
|
|
|
+ if(cards.size() == 0){
|
|
|
// delete event from event_list
|
|
|
- event_tool::instance()->handle_event(OT_CARD, ET_PERSON_VEHICLE_ANTI_COLLISION, m_id, 0, 0, false);
|
|
|
+ event_tool::instance()->handle_event(OT_CARD, ET_PERSON_VEHICLE_ANTI_COLLISION, id, 0, 0, false);
|
|
|
}else{
|
|
|
size_t i = 0;
|
|
|
for(auto c : cd)
|
|
@@ -130,7 +131,7 @@ void car::handle_anti_coll(const point& pt, const int& sid)
|
|
|
++i;
|
|
|
}
|
|
|
log_info("[anti_coll] the distance's list between person and vehicle : %s", desc.c_str());
|
|
|
- event_tool::instance()->handle_event(OT_CARD, ET_PERSON_VEHICLE_ANTI_COLLISION, m_id, min_d, cur_v, true, DT_COMMON, desc);
|
|
|
+ event_tool::instance()->handle_event(OT_CARD, ET_PERSON_VEHICLE_ANTI_COLLISION, id, min_d, cur_v, true, DT_COMMON, desc);
|
|
|
}
|
|
|
|
|
|
if(cards.size() > 0){
|