Pārlūkot izejas kodu

Fixed an error for areas with no actions

tags/v0.1.0
Fen Dweller pirms 6 gadiem
vecāks
revīzija
f4993e7bc2
1 mainītis faili ar 7 papildinājumiem un 3 dzēšanām
  1. +7
    -3
      world.js

+ 7
- 3
world.js Parādīt failu

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




}




Notiek ielāde…
Atcelt
Saglabāt