1
This commit is contained in:
parent
15b3a997e7
commit
0c24715771
@ -2016,6 +2016,24 @@ void Human::NotifyObservers(cs::SMUpdate* msg, cs::MFActivePlayerData* active_pl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
observer->SendNotifyMsg(*msg);
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user