This commit is contained in:
aozhiwei 2023-09-20 16:44:29 +08:00
parent 8ac9f6e1b7
commit 456ac47c8f
2 changed files with 6 additions and 1 deletions

View File

@ -1438,9 +1438,11 @@ void Player::PushJoinRoomMsg()
{
cs::SMMapInfo notifymsg;
notifymsg.set_map_id(room->GetMapMeta()->map_id());
if (proto_version < cs::ProtoVersion) {
#if 1
notifymsg.set_map_id(1001);
notifymsg.set_map_id(1001);
#endif
}
notifymsg.set_map_width(room->GetMapMeta()->map_width());
notifymsg.set_map_height(room->GetMapMeta()->map_height());
notifymsg.set_room_mode((int)room->GetRoomMode());

View File

@ -810,9 +810,12 @@ void RoomMgr::AdjustCMJoin(cs::CMJoin* msg)
{
msg->set_force_enter_newbie_room(false);
msg->set_pve_instance_id(0);
#ifdef DEBUG
#else
if (msg->proto_version() < cs::ProtoVersion) {
msg->set_mapid(2001);
}
#endif
#ifdef DEBUG1
if (DebugCmd::Enable()) {
msg->set_room_mode(kPvpRankMode);