This commit is contained in:
aozhiwei 2024-03-19 10:54:32 +08:00
parent df02ffb4eb
commit 2bc30cbfc8
3 changed files with 7 additions and 2 deletions

View File

@ -271,7 +271,11 @@ func (this *player) CMSetReady(hdr *f5.MsgHdr, msg *cs.CMSetReady) {
rspMsg.Errcode = proto.Int32(1) rspMsg.Errcode = proto.Int32(1)
rspMsg.Errmsg = proto.String("team already started") rspMsg.Errmsg = proto.String("team already started")
} else { } else {
this.isReady = 1 if msg.GetIsReady() != 0 {
this.isReady = 1
} else {
this.isReady = 0
}
} }
this.SendMsg(rspMsg) this.SendMsg(rspMsg)
this.GetTeam().SendUpdateNotify() this.GetTeam().SendUpdateNotify()

View File

@ -258,6 +258,7 @@ message SMCancel
// //
message CMSetReady message CMSetReady
{ {
optional int32 is_ready = 1; //
} }
message SMSetReady message SMSetReady

View File

@ -240,7 +240,7 @@ func (this *team) genStartGameInfo() {
startInfo := struct { startInfo := struct {
ZoneId int32 `json:"zone_id"` ZoneId int32 `json:"zone_id"`
NodeId int32 `json:"node_id"` NodeId int32 `json:"node_id"`
MapId int32 `json:"map"` MapId int32 `json:"map_id"`
RoomUuid string `json:"room_uuid"` RoomUuid string `json:"room_uuid"`
StartTime int32 `json:"start_time"` StartTime int32 `json:"start_time"`
TeamList []struct { TeamList []struct {