``` refactor(monster): 优化怪物生成逻辑并简化OgreInfo数据结构
This commit is contained in:
@@ -48,8 +48,8 @@ func (s *Space) LeaveMap(c common.PlayerI) {
|
||||
|
||||
s.User.Delete(c.GetInfo().UserID)
|
||||
s.UserInfo.Delete(c.GetInfo().UserID)
|
||||
_, ok := maphot[s.Super]
|
||||
if ok {
|
||||
current, ok := maphot[s.Super]
|
||||
if ok && *current > 0 {
|
||||
atomic.AddInt32(maphot[s.Super], -1)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user