From 5fb02fcc216abb44250b8d4a919270eea51174e8 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 24 Jan 2013 18:03:14 -0500 Subject: dupe cursor fix --- public/javascripts/game.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'public/javascripts') diff --git a/public/javascripts/game.js b/public/javascripts/game.js index 6211758..90e3a67 100644 --- a/public/javascripts/game.js +++ b/public/javascripts/game.js @@ -117,14 +117,14 @@ var UI = { var user = data.users[i]; if (!( user.id in users )) { users[user.id] = user; - } - if (user.id != _id && ! user.cursor) { - var cursor = new Cursor( user, now ); - user.cursor = cursor; - user.cursor.el.css({ 'margin-right': -user.x, 'margin-bottom': -user.y }); - } - else if (user.id == _id && own_cursor) { - own_cursor.name.html( user.firstname ); + if (user.id != _id && ! user.cursor) { + var cursor = new Cursor( user, now ); + user.cursor = cursor; + user.cursor.el.css({ 'margin-right': -user.x, 'margin-bottom': -user.y }); + } + else if (user.id == _id && own_cursor) { + own_cursor.name.html( user.firstname ); + } } } }, -- cgit v1.2.3-70-g09d2