Explorar el Código

Removed unnecessary check

tags/v0.1.0
Fen Dweller hace 6 años
padre
commit
083ee3bfa3
Se han modificado 2 ficheros con 6 adiciones y 11 borrados
  1. +0
    -1
      satiate.js
  2. +6
    -10
      world.js

+ 0
- 1
satiate.js Ver fichero

@@ -83,7 +83,6 @@ function init(story) {
initWorld(story, state);
initAudio(story, state);
initGame(story, state);
resetControls(state);

story.intro.setup(state);



+ 6
- 10
world.js Ver fichero

@@ -53,17 +53,13 @@ function resetControls(state) {

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);
});
}
}




Cargando…
Cancelar
Guardar