上传pvp代码
This commit is contained in:
parent
2d1838174e
commit
81552f2eff
@ -36,7 +36,7 @@ func (this *apiComp) Into(session comm.IUserSession, req *pb.PvpIntoReq) (code p
|
||||
battle.RedSession.SetSession(session.GetIP(), session.GetSessionId(), session.GetServiecTag(), session.GetGatewayServiceId(), session.GetUserId())
|
||||
} else {
|
||||
battle.BlueOffline = false
|
||||
battle.RedSession.SetSession(session.GetIP(), session.GetSessionId(), session.GetServiecTag(), session.GetGatewayServiceId(), session.GetUserId())
|
||||
battle.BlueSession.SetSession(session.GetIP(), session.GetSessionId(), session.GetServiecTag(), session.GetGatewayServiceId(), session.GetUserId())
|
||||
}
|
||||
battle.lock.Unlock()
|
||||
}
|
||||
|
@ -389,7 +389,9 @@ func (this *Pvp) useroffline(session comm.IUserSession) {
|
||||
}
|
||||
|
||||
if v.curroperate.Side == side {
|
||||
timewheel.Remove(v.operatetimer)
|
||||
if v.operatetimer != nil {
|
||||
timewheel.Remove(v.operatetimer)
|
||||
}
|
||||
v.curroperate.Auto = true
|
||||
data, _ = proto.Marshal(v.curroperate)
|
||||
if code = this.battle.InCmdBattle(&pb.BattleInCmdReq{
|
||||
|
Loading…
Reference in New Issue
Block a user