```
fix(socket): 修复socket广播和退出逻辑中的返回值错误 - 修正了Broadcast方法中错误的返回值true为false - 修正了QuitSelf方法中player遍历的返回值从true改为false - 在玩家退出时添加了睡眠模式错误码通知消息 feat(fight): 统一技能使用方法命名并修复战斗伤害计算逻辑 - 将所有技能使用方法名从Skill_Useed重命名为SkillUseed以保持一致性
This commit is contained in:
@@ -42,7 +42,7 @@ func cleanup() {
|
||||
player.Mainplayer.Range(func(key uint32, value *player.Player) bool {
|
||||
value.Kick(1)
|
||||
|
||||
return true
|
||||
return false
|
||||
})
|
||||
fight.Fightpool.ReleaseTimeout(0)
|
||||
log.Println("资源清理完成,程序即将退出")
|
||||
|
||||
Reference in New Issue
Block a user