fix: 修复空提交问题

This commit is contained in:
1
2025-11-17 15:31:23 +00:00
parent ec14ab11c0
commit 795503856c
2 changed files with 4 additions and 4 deletions

View File

@@ -29,8 +29,8 @@ type Space struct {
func (s *Space) Can_ARENA(c common.PlayerI) common.PlayerI {
if s.ARENA.Flag != 3 {
s.ARENA.Flag = 3
if s.ARENA.Flag == 1 {
s.ARENA.Flag = 2
s.ARENA.ChallengerID = c.GetInfo().UserID
return s.ARENA_Player
}
@@ -85,7 +85,7 @@ func (s *Space) UP_ARENA(c common.PlayerI, FLAG uint32) {
// NewSyncMap 创建一个新的玩家同步map
func NewSpace() *Space {
return &Space{
User: csmap.New[uint32, common.PlayerI](
// set the number of map shards. the default value is 32.