房卡是否足够

This commit is contained in:
sk 2024-09-09 18:19:26 +08:00
parent 70673450df
commit 3b18460edb
1 changed files with 1 additions and 1 deletions

View File

@ -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