Skip to content

Commit

Permalink
checkLocation wasnt being passed in buttonValue
Browse files Browse the repository at this point in the history
  • Loading branch information
Zertuk committed Jul 5, 2014
1 parent cf1ebdb commit 5b04aed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,11 @@ window.onload = function() {
return;
}
locationSwitch(locationVal);
locationCheck();
locationCheck(buttonValue);
});

//checks location to see if any functions need to be called
function locationCheck() {
function locationCheck(buttonValue) {
if (buttonValue == 'Mountain') {
magicDoor();
}
Expand Down Expand Up @@ -418,7 +418,7 @@ function mainLoop() {
if (batteryOn == true) {
bloodGenerator(player.batteries);
}

setTimeout(mainLoop, 1000);
}

Expand Down

0 comments on commit 5b04aed

Please sign in to comment.