From bd46740c9438ef3e82493199a6737ff2024c1225 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 9 Sep 2019 11:34:38 +0800 Subject: [PATCH] 1 --- server/gameserver/roommgr.cc | 2 ++ server/tools/protobuild/cs_proto.proto | 2 ++ 2 files changed, 4 insertions(+) diff --git a/server/gameserver/roommgr.cc b/server/gameserver/roommgr.cc index 656fee3..38de235 100644 --- a/server/gameserver/roommgr.cc +++ b/server/gameserver/roommgr.cc @@ -114,6 +114,8 @@ void RoomMgr::_CMJoin(f8::MsgHdr& hdr, const cs::CMJoin& msg) { cs::SMMapInfo notifymsg; notifymsg.set_map_id(room->map_meta->i->map_id()); + notifymsg.set_map_width(room->map_meta->i->map_width()); + notifymsg.set_map_height(room->map_meta->i->map_height()); GGListener::Instance()->SendToClient(hdr.socket_handle, hdr.seqid, notifymsg); } } diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index 7a95da2..afd516f 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -750,6 +750,8 @@ message SMJoinedNotify message SMMapInfo { optional int32 map_id = 1; //地图id + optional float map_width = 2; //地图宽度 + optional float map_height = 3; //地图高度 repeated MFMapObject objects = 6; //地图对象 }