|
@@ -46,7 +46,7 @@ void area_business_count_checker::on_enter(const std::shared_ptr<area_hover>&a,
|
|
|
{
|
|
|
a->m_area->m_person_count ++ ;
|
|
|
int pc=a->m_area->m_person_count.load();
|
|
|
- if (!a->m_area->m_event_person_count && pc > a->m_area->m_limit_person_count)
|
|
|
+ if (pc > a->m_area->m_limit_person_count)
|
|
|
{
|
|
|
a->m_area->m_event_person_count = true;
|
|
|
EVENT_TYPE ev = a->m_area->is_mine()?EVENT_TYPE::ET_OVER_COUNT_PERSON : EVENT_TYPE::ET_AREA_OVER_COUNT_PERSON ;
|
|
@@ -60,7 +60,7 @@ void area_business_count_checker::on_enter(const std::shared_ptr<area_hover>&a,
|
|
|
a->m_area->m_vehicle_count ++ ;
|
|
|
int vc=a->m_area->m_vehicle_count.load();
|
|
|
log_info("area_id:%d,v_count:%d",a->m_area->m_id,vc);
|
|
|
- if (vc > a->m_area->m_limit_vehicle_count && !a->m_area->m_event_vehicle_count)
|
|
|
+ if (vc > a->m_area->m_limit_vehicle_count)
|
|
|
{
|
|
|
a->m_area->m_event_vehicle_count = true;
|
|
|
EVENT_TYPE ev = a->m_area->is_mine()?EVENT_TYPE::ET_OVER_COUNT_VEHICLE : EVENT_TYPE::ET_AREA_OVER_COUNT_VEHICLE ;
|