This commit is contained in:
parent
eb131c89fb
commit
1cdf9da9a8
12
game/game.js
12
game/game.js
|
@ -19677,11 +19677,15 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
broadcastAll:function(func){
|
||||
broadcastAll:function(){
|
||||
if(game.online) return;
|
||||
game.broadcast.apply(this,arguments);
|
||||
var args=Array.from(arguments);
|
||||
args.shift();
|
||||
var argc=arguments.length;
|
||||
var args=new Array(argc);
|
||||
for(var i=0;i<argc;i++){
|
||||
args[i]=arguments[i];
|
||||
}
|
||||
game.broadcast.apply(this,args);
|
||||
var func=args.shift();
|
||||
if(typeof func=='string'){
|
||||
func=lib.message.client[func];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue