This commit is contained in:
libccy 2016-04-17 17:54:13 +08:00
parent 317b74089f
commit 5ddd875399
2 changed files with 6 additions and 0 deletions

View File

@ -12836,6 +12836,7 @@
if(player.playerid){
if(!game.onlinezhu){
game.onlinezhu=player.playerid;
game.send('server','changeAvatar',player.nickname,player.avatar);
}
map[i]=[player.nickname,player.avatar,player.playerid];
if(player.playerid==game.onlinezhu){

View File

@ -44,6 +44,11 @@
this.sendl('createroom');
}
},
changeAvatar:function(nickname,avatar){
this.nickname=nickname;
this.avatar=avatar;
util.updaterooms();
},
server:function(){
for(var i=0;i<rooms.length;i++){
if(!rooms[i].owner){