bugfix set ship,world location to true on init

This commit is contained in:
LucidCrux
2013-07-27 12:25:15 -06:00
parent 99800f1abd
commit a8c6790d84
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -16,7 +16,7 @@ var Ship = {
); );
if(!$SM.get('features.location.spaceShip')) { if(!$SM.get('features.location.spaceShip')) {
$SM.set('features.location.spaceShip'); $SM.set('features.location.spaceShip', true);
$SM.setM('game.spaceShip', { $SM.setM('game.spaceShip', {
hull: Ship.BASE_HULL, hull: Ship.BASE_HULL,
thrusters: Ship.BASE_THRUSTERS thrusters: Ship.BASE_THRUSTERS
@@ -90,7 +90,6 @@ var Ship = {
if(!$SM.get('game.spaceShip.seenShip')) { if(!$SM.get('game.spaceShip.seenShip')) {
Notifications.notify(Ship, 'somewhere above the debris cloud, the wanderer fleet hovers. been on this rock too long.'); Notifications.notify(Ship, 'somewhere above the debris cloud, the wanderer fleet hovers. been on this rock too long.');
$SM.set('game.spaceShip.seenShip', true); $SM.set('game.spaceShip.seenShip', true);
Engine.saveGame();
} }
Engine.moveStoresView(null, transition_diff); Engine.moveStoresView(null, transition_diff);
+1 -1
View File
@@ -129,7 +129,7 @@ var World = {
World.LANDMARKS[World.TILE.SWAMP] = {num: 1, minRadius: 15, maxRadius: World.RADIUS * 1.5, scene: 'swamp', label: 'A Murky Swamp'}; World.LANDMARKS[World.TILE.SWAMP] = {num: 1, minRadius: 15, maxRadius: World.RADIUS * 1.5, scene: 'swamp', label: 'A Murky Swamp'};
if(typeof $SM.get('features.location.world') == 'undefined') { if(typeof $SM.get('features.location.world') == 'undefined') {
$SM.set('features.location.world'); $SM.set('features.location.world', true);
$SM.setM('game.world', { $SM.setM('game.world', {
map: World.generateMap(), map: World.generateMap(),
mask: World.newMask() mask: World.newMask()