This commit is contained in:
aozhiwei 2024-05-17 12:37:34 +08:00
parent 15b3a997e7
commit 0c24715771

View File

@ -2016,6 +2016,24 @@ void Human::NotifyObservers(cs::SMUpdate* msg, cs::MFActivePlayerData* active_pl
}
}
observer->SendNotifyMsg(*msg);
#ifdef MYDEBUG
if (observer->IsPlayer()) {
const int DBG_IDX = 100;
auto itr = debug_data_.find(DBG_IDX);
if (itr == debug_data_.end()) {
debug_data_[DBG_IDX] = a8::XGetTickCount();
itr = debug_data_.find(DBG_IDX);
}
if (a8::XGetTickCount() - itr->second > 1000 * 10) {
itr->second = a8::XGetTickCount();
a8::XPrintf("LastSendUpdate account_id:%s socket_handle:%d\n",
{
observer->AsPlayer()->account_id,
observer->socket_handle
});
}
}
#endif
}
}