Sfoglia il codice sorgente

GameOver事件不移除玩家不销毁玩家

johnclot69 1 anno fa
parent
commit
6d54fe552c

+ 2 - 4
DotNet/Hotfix/Scenes/Game/Map/MapEventComponentSystem.cs

@@ -130,12 +130,10 @@ namespace ET.Server
                 map.PlayerLeaveRequest(player, false);
                 // 本地场景移除玩家
                 map.RemovePlayer(player, false);
-                // 移除本地组件数据
-                map.DomainScene().GetComponent<GamePlayerComponent>().Remove(player.GetId());
                 // 战斗服结束场景
                 map.GetZoneManager().destroyZoneRequest(map.Id.ToString());
-                // 销毁
-                player.Dispose();
+
+                player.Map = null;
             }
         }