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

@@ -67,7 +67,7 @@ func (h Controller) ARENA_UPFIGHT(data *fight.ARENA_UPFIGHT, c *player.Player) (
return
}
func (h Controller) ARENA_OWENR_ACCE(data *fight.ARENA_OWENR_ACCE, c *player.Player) (result *fight.NullOutboundInfo, err errorcode.ErrorCode) {
space.GetSpace(c.Info.MapID).UP_ARENA(c, 3)
space.GetSpace(c.Info.MapID).UP_ARENA(c, 2)
//result = &info.S2C_ARENA_GET_INFO{}
return
}

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.