Compare commits
2 Commits
791d82c8aa
...
07bea1ac2f
Author | SHA1 | Date |
---|---|---|
|
07bea1ac2f | |
|
8dac055bd6 |
|
@ -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 cfg.GetCostType() == 1 && !scene.sp.CostEnough(int(scene.CostType), scene.playerNum, cfg, p) {
|
||||
if scene.CostType == 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
|
||||
|
|
Loading…
Reference in New Issue