竞技馆房卡扣除问题

This commit is contained in:
sk 2024-11-21 14:19:19 +08:00
parent 1e2eeebfda
commit 538a920a4d
2 changed files with 3 additions and 6 deletions

View File

@ -1347,9 +1347,9 @@ func CSCreatePrivateRoomHandler(s *netlib.Session, packetId int, data interface{
return nil
}
//if costType == 2 {
// sp.CostPayment(scene, p.SnId)
//}
if costType == 2 {
sp.CostPayment(scene, p.SnId)
}
code = gamehall.OpResultCode_Game_OPRC_Sucess_Game
pack = &gamehall.SCCreatePrivateRoom{

View File

@ -60,9 +60,6 @@ func (spd *ScenePolicyData) OnPlayerEnter(s *Scene, snid int32) {
if s.CustomParam.GetCostType() == 1 { // AA
spd.CostPayment(s, snid)
}
if s.CustomParam.GetCostType() == 2 && snid == s.creator { // 房主付费
spd.CostPayment(s, s.creator)
}
}
}