From 547a8b3457904fc4fe474867ef4e9b3393bb7266 Mon Sep 17 00:00:00 2001 From: milimoe Date: Fri, 8 Aug 2025 20:51:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=9B=E9=A9=AC=E6=88=BF=E9=97=B4=E8=B0=81?= =?UTF-8?q?=E9=83=BD=E5=8F=AF=E4=BB=A5=E5=BC=80=E5=A7=8B=E6=B8=B8=E6=88=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OshimaServers/Service/OnlineService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OshimaServers/Service/OnlineService.cs b/OshimaServers/Service/OnlineService.cs index 35f75c8..fbf34c2 100644 --- a/OshimaServers/Service/OnlineService.cs +++ b/OshimaServers/Service/OnlineService.cs @@ -120,6 +120,10 @@ namespace Oshima.FunGame.OshimaServers.Service room.Roomid = Verification.CreateVerifyCode(VerifyCodeType.MixVerifyCode, 7); } msg = $"房间创建成功,房间号为:{room.Roomid}\r\n注意:房间若在 {FunGameConstant.RoomExpireTime} 分钟后仍处于空闲状态,将自动解散。"; + if (room.GameModule == "horseracing") + { + msg += "\r\n在赛马房间内的所有玩家无论是否是房主都可以开始游戏。"; + } room.RoomMaster = user; room.CreateTime = DateTime.Now; } @@ -357,7 +361,7 @@ namespace Oshima.FunGame.OshimaServers.Service if (FunGameConstant.UsersInRoom.TryGetValue(user.Id, out Room? value) && value != null) { room = value; - if (room.RoomMaster.Id != user.Id) + if (room.GameModule != "horseracing" && room.RoomMaster.Id != user.Id) { msgs.Add("你不是房主,无法开始游戏。"); }