From 78041a4168bd81dd6de002daac407d1019fc3f6d Mon Sep 17 00:00:00 2001 From: FrozenCow Date: Tue, 8 Mar 2011 01:22:03 +0100 Subject: [PATCH] Fixed not being able to follow players. --- web/map.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/map.js b/web/map.js index c4c9611b..5d6c33d8 100644 --- a/web/map.js +++ b/web/map.js @@ -517,7 +517,9 @@ DynMap.prototype = { .text(player.name) ) .click(function(e) { - me.followPlayer(null); + if (me.followingPlayer !== player) { + me.followPlayer(null); + } me.panTo(player.location); }) .appendTo(me.playerlist);