Commit 3c007d60 authored by r03ert0's avatar r03ert0

fix bug in receivePaintMessage function

parent e9d9978f
......@@ -383,11 +383,9 @@ export var AtlasMakerWS = {
*/
receivePaintMessage: function receivePaintMessage(data) {
var me=AtlasMakerWidget;
var {uid:u, c, data:msg}=data; // user
var x=parseInt(msg.x); // x coordinate
var y=parseInt(msg.y); // y coordinate
var {uid:u, data:msg}=data; // user
if(me.Collab[u]) { me.paintxy(u, c, x, y, me.Collab[u]); }
if(me.Collab[u]) { me.paintxy(u, msg.c, msg.x, msg.y, me.Collab[u]); }
},
/**
......@@ -415,11 +413,8 @@ export var AtlasMakerWS = {
receiveShowMessage: function receiveShowMessage(data) {
var me=AtlasMakerWidget;
var {uid:u, data:msg} = data; // user
var {c} = msg; // command
var x=parseInt(msg.x); // x coordinate
var y=parseInt(msg.y); // y coordinate
if(me.Collab[u]) { me.showxy(u, c, x, y, me.Collab[u]); }
if(me.Collab[u]) { me.showxy(u, msg.c, msg.x, msg.y, me.Collab[u]); }
},
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment