1
This commit is contained in:
parent
87a368201f
commit
f81da6db90
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user