| @@ -83,7 +83,6 @@ function init(story) { | |||||
| initWorld(story, state); | initWorld(story, state); | ||||
| initAudio(story, state); | initAudio(story, state); | ||||
| initGame(story, state); | initGame(story, state); | ||||
| resetControls(state); | |||||
| story.intro.setup(state); | story.intro.setup(state); | ||||
| @@ -53,17 +53,13 @@ function resetControls(state) { | |||||
| actionButtons = []; | actionButtons = []; | ||||
| if (state.player.location) { | |||||
| if (state.world[state.player.location].actions) { | |||||
| state.world[state.player.location].actions.forEach(action => { | |||||
| actionButtons.push(undefined); | |||||
| }); | |||||
| } | |||||
| } | |||||
| const actions = state.world[state.player.location].actions; | |||||
| if (actions) { | |||||
| actions.forEach(action => { | |||||
| actionButtons.push(undefined); | |||||
| }); | |||||
| } | |||||
| } | } | ||||