소스 검색

Fixed an error for areas with no actions

tags/v0.1.0
Fen Dweller 6 년 전
부모
커밋
f4993e7bc2
1개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. +7
    -3
      world.js

+ 7
- 3
world.js 파일 보기

@@ -54,12 +54,16 @@ function resetControls(state) {
actionButtons = [];

if (state.player.location) {
state.world[state.player.location].actions.forEach(action => {
actionButtons.push(undefined);
});
if (state.world[state.player.location].actions) {
state.world[state.player.location].actions.forEach(action => {
actionButtons.push(undefined);
});
}
}




}




불러오는 중...
취소
저장