From 055617c985cb11043f71e8961974873131296fef Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期四, 06 十二月 2018 19:47:41 +0800
Subject: [PATCH] 2594 【1.3.100】玩家改名导致重复登录bug
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/UpdatePlayerName.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/UpdatePlayerName.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/UpdatePlayerName.py
index 0602621..8e201d7 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/UpdatePlayerName.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/UpdatePlayerName.py
@@ -146,7 +146,8 @@
newName = sendPack.GetNewName()
curPlayer.SetPlayerName(newName)
-
+ GameWorld.GetPlayerManager().UpdatePlayerNameIndex(curPlayerName, newName)
+ GameWorld.GetMapCopyPlayerManager().UpdatePlayerNameIndex(curPlayerName, newName)
#EventReport.WriteEvent_change_name(curPlayer, curPlayerName, newName)
GameWorld.Log("UpdatePlayerName MapServer改名成功, newName = %s"%newName, curPlayer.GetID())
--
Gitblit v1.8.0