游戏功能优化
This commit is contained in:
parent
98bed409f4
commit
7e70273759
@ -113,9 +113,9 @@ func (p *PlayerChessData) UpdateChessData(player *Player, MChessData map[string]
|
||||
|
||||
// 检查棋子数据是否一致
|
||||
func (p *PlayerChessData) checkChessEqual(player *Player) bool {
|
||||
if len(p.Data.MChessData) == 0 {
|
||||
return true
|
||||
}
|
||||
// if len(p.Data.MChessData) == 0 {
|
||||
// return true
|
||||
// }
|
||||
ChessList := player.PlayMod.getChessMod().GetChessList()
|
||||
if len(ChessList) != len(p.Data.MChessData) {
|
||||
return false
|
||||
|
||||
Loading…
Reference in New Issue
Block a user