修复异常

This commit is contained in:
liwei1dao 2023-11-13 14:58:08 +08:00
parent 79d43418ae
commit 232dc9d051

View File

@ -294,10 +294,12 @@ func (this *Room) AiHanle(stype string) {
this.AiHandleByOpenCard() this.AiHandleByOpenCard()
break break
case "opencard": case "opencard":
if this.aihandlenumber < int32(len(this.aihandlecards)) {
time.Sleep(time.Second) time.Sleep(time.Second)
this.AiHandleByOpenCard() this.AiHandleByOpenCard()
} }
} }
}
func (this *Room) SendAllSessions(stype string, msg proto.Message, ispush bool) { func (this *Room) SendAllSessions(stype string, msg proto.Message, ispush bool) {
for _, v := range this.sessions { for _, v := range this.sessions {