1
This commit is contained in:
parent
48ef328866
commit
8acbe0abf6
@ -4045,6 +4045,9 @@ void Human::SetSocketHandle(int socket_handle)
|
||||
room->GetRoomUuid(),
|
||||
socket_handle
|
||||
});
|
||||
if (socket_handle == 0) {
|
||||
TraceMgr::Instance()->PrintBackTrace();
|
||||
}
|
||||
#endif
|
||||
socket_handle_ = socket_handle;
|
||||
}
|
||||
|
@ -62,6 +62,12 @@ void PlayerMgr::RemovePlayerBySocket(int socket_handle)
|
||||
{
|
||||
auto itr = socket_hash_.find(socket_handle);
|
||||
if (itr != socket_hash_.end()) {
|
||||
#if MYDEBUG
|
||||
a8::XPrintf("RemovePlayerBySocket account_id%s room_uuid:%s %d\n",
|
||||
{itr->second->account_id,
|
||||
itr->second->room->GetRoomUuid(),
|
||||
socket_handle});
|
||||
#endif
|
||||
itr->second->SetSocketHandle(0);
|
||||
socket_hash_.erase(itr);
|
||||
}
|
||||
@ -122,7 +128,7 @@ void PlayerMgr::ReBindSocket(Player* hum)
|
||||
a8::XPrintf("ReBindSocket account_id:%s socket_handle:%d\n",
|
||||
{
|
||||
hum->account_id,
|
||||
hum->GetSocketHandle()
|
||||
hum->GetSocketHandle(),
|
||||
});
|
||||
#endif
|
||||
socket_hash_[hum->GetSocketHandle()] = hum;
|
||||
|
@ -312,6 +312,12 @@ void RoomMgr::ReportServerState(int instance_id, const std::string& host, int po
|
||||
|
||||
void RoomMgr::FreeOverRoom(const std::string& room_uuid)
|
||||
{
|
||||
#ifdef MYDEBUG
|
||||
a8::XPrintf("FreeOverRoom room_uuid:%s\n",
|
||||
{
|
||||
room_uuid
|
||||
});
|
||||
#endif
|
||||
auto itr = over_room_hash_.find(room_uuid);
|
||||
if (itr != over_room_hash_.end()) {
|
||||
--PerfMonitor::Instance()->room_num[itr->second->GetRoomType()];
|
||||
|
@ -188,7 +188,7 @@ void Skill::AddMinorMode(
|
||||
int buff_id
|
||||
)
|
||||
{
|
||||
#ifdef MYDEBUG
|
||||
#ifdef MYDEBUG1
|
||||
if (owner->IsPlayer()) {
|
||||
a8::XPrintf("AddMinorMode frame_no:%d minor_type:%d minor_cd_time:%d buff_id:%d\n",
|
||||
{owner->room->GetFrameNo(),
|
||||
@ -213,7 +213,7 @@ void Skill::AddMinorMode(
|
||||
[this, buff_id] (int event, const a8::Args* args)
|
||||
{
|
||||
if (a8::TIMER_EXEC_EVENT == event) {
|
||||
#ifdef MYDEBUG
|
||||
#ifdef MYDEBUG1
|
||||
if (owner->IsPlayer()) {
|
||||
a8::XPrintf("ExecTimer MinorMode frame_no:%d buff_id:%d\n", {owner->room->GetFrameNo(), buff_id});
|
||||
a8::XPrintf(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n", {});
|
||||
@ -222,7 +222,7 @@ void Skill::AddMinorMode(
|
||||
}
|
||||
#endif
|
||||
} else if (a8::TIMER_DELETE_EVENT == event) {
|
||||
#ifdef MYDEBUG
|
||||
#ifdef MYDEBUG1
|
||||
if (owner->IsPlayer()) {
|
||||
a8::XPrintf("DeleteTimer MinorMode frame_no:%d buff_id:%d\n", {owner->room->GetFrameNo(), buff_id});
|
||||
a8::XPrintf(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n", {});
|
||||
|
@ -34,9 +34,7 @@ void TraceMgr::Trace(const std::string& hint)
|
||||
|
||||
void TraceMgr::PrintBackTrace()
|
||||
{
|
||||
#if 0
|
||||
std::cout << boost::stacktrace::stacktrace();
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user