diff --git a/script/state_manager.js b/script/state_manager.js index 7624bc9..e07ea37 100644 --- a/script/state_manager.js +++ b/script/state_manager.js @@ -51,7 +51,7 @@ var StateManager = { var words = stateName.split(/[.\[\]'"]+/); //for some reason there are sometimes empty strings for (var i = 0; i < words.length; i++) { - if (words[i] == '') { + if (words[i] == '') { words.splice(i, 1); i--; } @@ -402,4 +402,4 @@ var StateManager = { }; //alias -var $SM = StateManager; \ No newline at end of file +var $SM = StateManager; diff --git a/script/world.js b/script/world.js index b666f90..2b19ac9 100644 --- a/script/world.js +++ b/script/world.js @@ -20,7 +20,7 @@ var World = { BOREHOLE: 'B', BATTLEFIELD: 'F', SWAMP: 'M', - CACHE: 'U' + CACHE: 'U' }, TILE_PROBS: {}, LANDMARKS: {}, @@ -131,7 +131,7 @@ var World = { // Only add the cache if there is prestige data if($SM.get('previous.stores')) { - World.LANDMARKS[World.TILE.CACHE] = { num: 1, minRadius: 10, maxRadius: World.RADIUS * 1.5, scene: 'cache', label: _('A Destroyed Village')}; + World.LANDMARKS[World.TILE.CACHE] = { num: 1, minRadius: 10, maxRadius: World.RADIUS * 1.5, scene: 'cache', label: _('A Destroyed Village')}; } if(typeof $SM.get('features.location.world') == 'undefined') {