This commit is contained in:
aozhiwei 2024-01-02 16:13:41 +08:00
parent 87a368201f
commit f81da6db90
2 changed files with 14 additions and 10 deletions

View File

@ -1132,11 +1132,6 @@ void Human::FillSMGameOver(cs::SMGameOver& msg)
}
*msg.mutable_settlement() = *p->settlement;
}
#ifdef MYDEBUG
if (IsPlayer()) {
a8::XPrintf("SMGameOver:%s\n", {f8::PbToJson(&msg)});
}
#endif
}
void Human::SendNewBieEnd()
@ -1565,6 +1560,11 @@ void Human::SendGameOver()
cs::SMGameOver msg;
FillSMGameOver(msg);
SendNotifyMsg(msg);
#ifdef MYDEBUG
if (IsPlayer()) {
a8::XPrintf("SMGameOver:%s\n", {f8::PbToJson(&msg)});
}
#endif
} else {
CalcStats();
if (IsPlayer() && !sent_personal_report_) {
@ -1580,6 +1580,11 @@ void Human::SendGameOver()
cs::SMGameOver msg;
FillSMGameOver(msg);
SendNotifyMsg(msg);
#ifdef MYDEBUG
if (IsPlayer()) {
a8::XPrintf("SMGameOver:%s\n", {f8::PbToJson(&msg)});
}
#endif
}
}
}

View File

@ -121,11 +121,10 @@ void RoomMgr::_CMJoin(f8::MsgHdr* hdr, const cs::CMJoin& msg)
cs::CMJoin* mutable_msg = (cs::CMJoin*)&msg;
AdjustCMJoin(mutable_msg);
#ifdef MYDEBUG
a8::XPrintf("AdjustCMJoinAfter room_mode:%d pve_instance_id:%d\n",
a8::XPrintf("AdjustCMJoinAfter %s\n",
{
msg.room_mode(),
msg.pve_instance_id()
});
f8::PbToJson(&msg)
});
#endif
}
if (msg.force_enter_newbie_room()) {
@ -838,7 +837,7 @@ void RoomMgr::AdjustCMJoin(cs::CMJoin* msg)
const mt::Map* map_meta = mt::Map::GetById(msg->mapid());
if (map_meta && map_meta->is_moba()) {
msg->set_room_mode(kMobaMode);
#if 1
#if 0
{
auto data = a8::MutableXObject::CreateObject();
data->SetVal("zone_id", 1);