1
This commit is contained in:
parent
69b2db191e
commit
0cbc90c4f1
@ -56,7 +56,7 @@ func (this *historyMgr) PushLastBattleInfo(hum common.Player) {
|
|||||||
|
|
||||||
func (this *historyMgr) CanStart(accountId string, mapId int32, modeId int32) bool {
|
func (this *historyMgr) CanStart(accountId string, mapId int32, modeId int32) bool {
|
||||||
u := this.getUser(accountId)
|
u := this.getUser(accountId)
|
||||||
if u == nil && modeId == jccommon.MAP_MODE_CIRCUIT {
|
if u != nil && modeId == jccommon.MAP_MODE_CIRCUIT {
|
||||||
key := q5.MkInt64(mapId, modeId)
|
key := q5.MkInt64(mapId, modeId)
|
||||||
if startTime, ok := u.mapAndModeHash[key]; ok {
|
if startTime, ok := u.mapAndModeHash[key]; ok {
|
||||||
nowTime := q5.ToInt32(f5.GetApp().GetRealSeconds())
|
nowTime := q5.ToInt32(f5.GetApp().GetRealSeconds())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user