From 7d5656d946f478ee9730408c719c131c2064ead5 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 26 Sep 2023 16:48:51 +0800 Subject: [PATCH] 1 --- server/gameserver/pbutils.cc | 1 + server/tools/protobuild/cs_proto.proto | 1 + 2 files changed, 2 insertions(+) diff --git a/server/gameserver/pbutils.cc b/server/gameserver/pbutils.cc index 00b90d85..b4466a34 100644 --- a/server/gameserver/pbutils.cc +++ b/server/gameserver/pbutils.cc @@ -2116,6 +2116,7 @@ void SandTable::FillMFSandTable(cs::SMUpdate* msg, Human* hum, FrameData* framed } auto sand_table = msg->mutable_sandtable(); + sand_table->set_max_human_num(room_->GetRoomMaxPlayerNum()); if (hum->send_sand_table_msg_times <= 0) { room_->TraverseHumanList ( diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index 83729c76..264b9fac 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -1344,6 +1344,7 @@ message MFSandTableMsg message MFSandTable { repeated MFSandTableMsg msgs = 1; //沙盘消息列表 + optional int32 max_human_num = 2; //最大人数 } //对象位置坐标