avatar
This commit is contained in:
parent
317b74089f
commit
5ddd875399
|
@ -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){
|
||||
|
|
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue