Преглед на файлове

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




}




Loading…
Отказ
Запис