Fixing minor whitespace conformity in state_manager.js, fixed whitespace conformity in world.js

This commit is contained in:
Travis Weston
2014-07-13 11:26:21 -04:00
parent 674d44f6a8
commit 4bb126c205
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -51,7 +51,7 @@ var StateManager = {
var words = stateName.split(/[.\[\]'"]+/); var words = stateName.split(/[.\[\]'"]+/);
//for some reason there are sometimes empty strings //for some reason there are sometimes empty strings
for (var i = 0; i < words.length; i++) { for (var i = 0; i < words.length; i++) {
if (words[i] == '') { if (words[i] == '') {
words.splice(i, 1); words.splice(i, 1);
i--; i--;
} }
@@ -402,4 +402,4 @@ var StateManager = {
}; };
//alias //alias
var $SM = StateManager; var $SM = StateManager;
+2 -2
View File
@@ -20,7 +20,7 @@ var World = {
BOREHOLE: 'B', BOREHOLE: 'B',
BATTLEFIELD: 'F', BATTLEFIELD: 'F',
SWAMP: 'M', SWAMP: 'M',
CACHE: 'U' CACHE: 'U'
}, },
TILE_PROBS: {}, TILE_PROBS: {},
LANDMARKS: {}, LANDMARKS: {},
@@ -131,7 +131,7 @@ var World = {
// Only add the cache if there is prestige data // Only add the cache if there is prestige data
if($SM.get('previous.stores')) { if($SM.get('previous.stores')) {
World.LANDMARKS[World.TILE.CACHE] = { num: 1, minRadius: 10, maxRadius: World.RADIUS * 1.5, scene: 'cache', label: _('A&nbsp;Destroyed&nbsp;Village')}; World.LANDMARKS[World.TILE.CACHE] = { num: 1, minRadius: 10, maxRadius: World.RADIUS * 1.5, scene: 'cache', label: _('A&nbsp;Destroyed&nbsp;Village')};
} }
if(typeof $SM.get('features.location.world') == 'undefined') { if(typeof $SM.get('features.location.world') == 'undefined') {