Compare commits
No commits in common. "07bea1ac2f8ced3a7ccae21b2fb6c8824d25fb1d" and "791d82c8aa84899df26d17d9b591da13dbf8cdec" have entirely different histories.
07bea1ac2f
...
791d82c8aa
|
@ -106,7 +106,7 @@ func (this *CSEnterRoomHandler) Process(s *netlib.Session, packetid int, data in
|
||||||
// 房费是否充足
|
// 房费是否充足
|
||||||
if scene.IsCustom() {
|
if scene.IsCustom() {
|
||||||
cfg := PlatformMgrSingleton.GetConfig(p.Platform).RoomConfig[scene.RoomConfigId]
|
cfg := PlatformMgrSingleton.GetConfig(p.Platform).RoomConfig[scene.RoomConfigId]
|
||||||
if scene.CostType == 1 && !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
|
code = gamehall.OpResultCode_Game_OPRC_CostNotEnough
|
||||||
logger.Logger.Trace("CSEnterRoomHandler cost error")
|
logger.Logger.Trace("CSEnterRoomHandler cost error")
|
||||||
goto failed
|
goto failed
|
||||||
|
|
Loading…
Reference in New Issue