SCFC 1 год назад
Родитель
Сommit
1c64824a40
3 измененных файлов с 3 добавлено и 3 удалено
  1. 0 2
      script/core/ObjHuman.lua
  2. 1 0
      script/module/role/Proto.lua
  3. 2 1
      script/module/role/RoleLogic.lua

+ 0 - 2
script/core/ObjHuman.lua

@@ -657,8 +657,6 @@ function sendHumanInfo(human,isNew)
 		mm.nSpeed[2] = human.db.nSpeed[2] and human.db.nSpeed[2] or 0
 		mm.nSpeed[3] = human.db.nSpeed[3] and human.db.nSpeed[3] or 0
 	end
-	
-	mm.nServerIndex = Config.SVR_INDEX
 
 	Msg.send(mm, human.fd)
 end

+ 1 - 0
script/module/role/Proto.lua

@@ -38,6 +38,7 @@ RoleBase = {
     {"createTime", 1, "int"},
     {"signInCnt", 1, "int"},
 	{"realmName", 1, "string"},	    	-- 境界名称
+	{"nServerIndex",	1,	"int"},		-- 服务器Index
 }
 
 ChenghaoNet = {

+ 2 - 1
script/module/role/RoleLogic.lua

@@ -107,7 +107,8 @@ function getRoleBase(human, net, combatType, isMinNet)
     net.yellow.lux = (db and db.yellow and db.yellow.lux) and 1 or 0
 
     net.realmName = RoleRealmLogic.getRealmName(human)
-
+    net.nServerIndex = Config.SVR_INDEX
+    
     if isMinNet then
        clear2MinNet(db, net)
     end