From bac7f9412fabeb74c94fa121943fec7c1c437b17 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 20 Sep 2024 14:37:39 +0800 Subject: [PATCH] 1 --- server/jccommon/constant.go | 1 + server/matchserver/go.mod | 2 ++ server/matchserver/history/historymgr.go | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/server/jccommon/constant.go b/server/jccommon/constant.go index eb7de68c..048b9d2d 100644 --- a/server/jccommon/constant.go +++ b/server/jccommon/constant.go @@ -114,6 +114,7 @@ const ( const ( MAP_MODE_BOUNTY = 301 + MAP_MODE_CIRCUIT = 601 ) const ( diff --git a/server/matchserver/go.mod b/server/matchserver/go.mod index 0777b044..0f6ed534 100644 --- a/server/matchserver/go.mod +++ b/server/matchserver/go.mod @@ -6,6 +6,8 @@ require q5 v1.0.0 require f5 v1.0.0 +require jccommon v1.0.0 + require main v1.0.0 require cs v1.0.0 diff --git a/server/matchserver/history/historymgr.go b/server/matchserver/history/historymgr.go index f83c8c83..4690b39a 100644 --- a/server/matchserver/history/historymgr.go +++ b/server/matchserver/history/historymgr.go @@ -3,6 +3,7 @@ package history import ( "q5" "cs" + "jccommon" "main/common" "github.com/golang/protobuf/proto" ) @@ -41,6 +42,9 @@ func (this *historyMgr) PushLastBattleInfo(hum common.Player) { p.MapId = proto.Int32(mapId) p.ModeId = proto.Int32(modeId) p.StartTime = proto.Int32(val) + if modeId == jccommon.MAP_MODE_CIRCUIT { + + } } hum.SendMsg(msg) }