summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--play.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/play.js b/play.js
index c7e20ca..5c68d8e 100644
--- a/play.js
+++ b/play.js
@@ -401,7 +401,7 @@ function create_ui() {
ui.dem_inf = []
ui.com_inf = []
- for (let s = 1; s <= last_space; ++s) {
+ for (let s = 0; s <= last_space; ++s) {
let info = spaces[s]
let [ x, y, w, h ] = LAYOUT[info.ascii_name]
let xc = Math.round(x + w / 2)
@@ -454,7 +454,6 @@ function create_ui() {
power_card_e.className = "card power_card power_" + c
ui.power_cards[c] = power_card_e
}
-
ui.events = []
for (let id of box_events) {
ui.events[id] = document.createElement("div")
@@ -613,7 +612,7 @@ function on_update() {
// UPDATE INFLUENCE VALUES
- for (let s = 1; s <= last_space; ++s) {
+ for (let s = 0; s <= last_space; ++s) {
const demInfl = view.demInfl[s]
const comInfl = view.comInfl[s]