avatar
This commit is contained in:
parent
317b74089f
commit
5ddd875399
|
@ -12836,6 +12836,7 @@
|
||||||
if(player.playerid){
|
if(player.playerid){
|
||||||
if(!game.onlinezhu){
|
if(!game.onlinezhu){
|
||||||
game.onlinezhu=player.playerid;
|
game.onlinezhu=player.playerid;
|
||||||
|
game.send('server','changeAvatar',player.nickname,player.avatar);
|
||||||
}
|
}
|
||||||
map[i]=[player.nickname,player.avatar,player.playerid];
|
map[i]=[player.nickname,player.avatar,player.playerid];
|
||||||
if(player.playerid==game.onlinezhu){
|
if(player.playerid==game.onlinezhu){
|
||||||
|
|
|
@ -44,6 +44,11 @@
|
||||||
this.sendl('createroom');
|
this.sendl('createroom');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
changeAvatar:function(nickname,avatar){
|
||||||
|
this.nickname=nickname;
|
||||||
|
this.avatar=avatar;
|
||||||
|
util.updaterooms();
|
||||||
|
},
|
||||||
server:function(){
|
server:function(){
|
||||||
for(var i=0;i<rooms.length;i++){
|
for(var i=0;i<rooms.length;i++){
|
||||||
if(!rooms[i].owner){
|
if(!rooms[i].owner){
|
||||||
|
|
Loading…
Reference in New Issue