竞技馆房卡扣除问题
This commit is contained in:
parent
1e2eeebfda
commit
538a920a4d
|
|
@ -1347,9 +1347,9 @@ func CSCreatePrivateRoomHandler(s *netlib.Session, packetId int, data interface{
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
//if costType == 2 {
|
if costType == 2 {
|
||||||
// sp.CostPayment(scene, p.SnId)
|
sp.CostPayment(scene, p.SnId)
|
||||||
//}
|
}
|
||||||
|
|
||||||
code = gamehall.OpResultCode_Game_OPRC_Sucess_Game
|
code = gamehall.OpResultCode_Game_OPRC_Sucess_Game
|
||||||
pack = &gamehall.SCCreatePrivateRoom{
|
pack = &gamehall.SCCreatePrivateRoom{
|
||||||
|
|
|
||||||
|
|
@ -60,9 +60,6 @@ func (spd *ScenePolicyData) OnPlayerEnter(s *Scene, snid int32) {
|
||||||
if s.CustomParam.GetCostType() == 1 { // AA
|
if s.CustomParam.GetCostType() == 1 { // AA
|
||||||
spd.CostPayment(s, snid)
|
spd.CostPayment(s, snid)
|
||||||
}
|
}
|
||||||
if s.CustomParam.GetCostType() == 2 && snid == s.creator { // 房主付费
|
|
||||||
spd.CostPayment(s, s.creator)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue