only look to localStorage for our player guid WHEN WE'RE LOOKING UP OUR OWN NAME

daft error!
This commit is contained in:
Jon Atkins 2013-10-07 20:18:09 +01:00
parent eeb24315fb
commit 7a6bf1eeef

View File

@ -40,8 +40,10 @@ window.playerNameToGuid = function(playerName) {
if (cachedGuid !== undefined) return cachedGuid;
// IITC needs our own player GUID, from a lookup by name. so we retrieve this from localstorage (if available)
if (playerName == PLAYER.nickname) {
cachedGuid = localStorage['PLAYER-'+PLAYER.nickname];
if (cachedGuid !== undefined) return cachedGuid;
}
var guid = null;
$.each(Object.keys(sessionStorage), function(ind,key) {