修复登录场景卡白屏

This commit is contained in:
huangxiaolei
2022-11-28 18:58:13 +08:00
parent eaf7045714
commit 362ca86130

View File

@@ -194,7 +194,7 @@ func (g *GameManager) UserDealEnterWorld(hostPlayer *model.Player, otherUid uint
if hostWorld.multiplayer == false {
g.UserWorldRemovePlayer(hostWorld, hostPlayer)
hostPlayer.TeamConfig.CurrTeamIndex = 3
hostPlayer.TeamConfig.CurrTeamIndex = 0
hostPlayer.TeamConfig.CurrAvatarIndex = 0
// PacketPlayerEnterSceneNotify
@@ -234,7 +234,7 @@ func (g *GameManager) UserDealEnterWorld(hostPlayer *model.Player, otherUid uint
Z: hostPlayer.Rot.Z,
}
otherPlayer.SceneId = hostPlayer.SceneId
otherPlayer.TeamConfig.CurrTeamIndex = 3
otherPlayer.TeamConfig.CurrTeamIndex = 0
otherPlayer.TeamConfig.CurrAvatarIndex = 0
// PacketPlayerEnterSceneNotify