浏览代码

Removed unnecessary check

tags/v0.1.0
Fen Dweller 6 年前
父节点
当前提交
083ee3bfa3
共有 2 个文件被更改,包括 6 次插入11 次删除
  1. +0
    -1
      satiate.js
  2. +6
    -10
      world.js

+ 0
- 1
satiate.js 查看文件

@@ -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 查看文件

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




正在加载...
取消
保存