Ver código fonte

修复game节点分配

neo 1 ano atrás
pai
commit
f3c636d4a1
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      nodes/game/service/srvAgentMgr.lua

+ 1 - 1
nodes/game/service/srvAgentMgr.lua

@@ -93,7 +93,7 @@ function root.print_uid_list()
93 93
 end
94 94
 
95 95
 -- 在线玩家广播消息
96
-function CMD.broadcast_agents(cmd, ...)
96
+function root.broadcast_agents(cmd, ...)
97 97
 	for uid, handle in pairs(mapUid2Agent) do
98 98
 		pcall(skynet.send, handle, "lua", "doCmd", uid, cmd, ...)
99 99
 	end