From 3b18460edb6e350a818b73418c37fa707c3aaf8c Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Mon, 9 Sep 2024 18:19:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=BF=E5=8D=A1=E6=98=AF=E5=90=A6=E8=B6=B3?= =?UTF-8?q?=E5=A4=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/action_game.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldsrv/action_game.go b/worldsrv/action_game.go index c1f902a..1b5664b 100644 --- a/worldsrv/action_game.go +++ b/worldsrv/action_game.go @@ -106,7 +106,7 @@ func (this *CSEnterRoomHandler) Process(s *netlib.Session, packetid int, data in // 房费是否充足 if scene.IsCustom() { cfg := PlatformMgrSingleton.GetConfig(p.Platform).RoomConfig[scene.RoomConfigId] - if !scene.sp.CostEnough(int(scene.CostType), scene.playerNum, cfg, p) { + if cfg.GetCostType() == 1 && !scene.sp.CostEnough(int(scene.CostType), scene.playerNum, cfg, p) { code = gamehall.OpResultCode_Game_OPRC_CostNotEnough logger.Logger.Trace("CSEnterRoomHandler cost error") goto failed